Actions

Available Actions

Action Name

Parameters

changeSiteDomain

site

oldDomain (string)

newDomain (string)

wordPressInstaller:standardInstall

wordPressInstaller:import

wordPressInstaller:import:includesWP

siteStarted

siteprocesses

siteStopped

siteCloned

siteAdded

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

Last updated