Actions

Available Actions

Action Name

Parameters

changeSiteDomain

site

oldDomain (string)

newDomain (string)

wordPressInstaller:standardInstall

site

wordPressInstaller:import

site

wordPressInstaller:import:includesWP

site

siteStarted

siteprocesses

siteStopped

site

siteCloned

site

siteAdded

site

siteDeleted

Site id

changeEnvironment:before

site

Plain object containing:

  • environment

  • webServer

  • phpVersion

  • mysqlVersion

  • clone (boolean)

searchReplaceWPDatabase

  • site

  • oldDomain

  • newDomain

  • subSiteURLs

Unlike Content Hooks and Filters, Actions do not need to return a value.

Example

hooks.addAction('siteAdded', function (site) {
console.log('New site added!', site);
});