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

1
hooks.addAction('siteAdded', function (site) {
2
console.log('New site added!', site);
3
});
Copied!
Last modified 9mo ago
Export as PDF
Copy link