Actions

Available Actions

Action Name

Parameters

changeSiteDomain

site

oldDomain (string)

newDomain (string)

wordPressInstaller:standardInstall

site

wordPressInstaller:import

site

wordPressInstaller:import:includesWP

site

siteStopped

site

siteCloned

site

siteAdded

site

changeEnvironment:before

site

Plain object containing:

  • environment

  • webServer

  • phpVersion

  • mysqlVersion

  • clone (boolean)

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);
});