$pages->added() $pages->added(Page $page) $pages->added(Page $page) | (nothing) | Hook called after a new page has been added | |
$pages->cloneReady() $pages->cloneReady(Page $page, Page $copy) $pages->cloneReady(Page $page, Page $copy) | (nothing) | Hook called when a page is about to be cloned, but before data has been touched | |
$pages->cloned() $pages->cloned(Page $page, Page $copy) $pages->cloned(Page $page, Page $copy) | (nothing) | Hook called when a page has been cloned | |
$pages->deleteBranchReady() $pages->deleteBranchReady(Page $page, array $options) $pages->deleteBranchReady(Page $page, array $options) | (nothing) | Hook called before a branch of pages is about to be deleted, called on root page of branch only | |
$pages->deleteReady() $pages->deleteReady(Page $page) $pages->deleteReady(Page $page, array $options = []) | (nothing) | Hook called when a page is about to be deleted, but before data has been touched | |
$pages->deleted() $pages->deleted(Page $page) $pages->deleted(Page $page, array $options = []) | (nothing) | Hook called after a page and its data have been deleted | |
$pages->deletedBranch() $pages->deletedBranch(Page $page, array $options, int $numDeleted) $pages->deletedBranch(Page $page, array $options, int $numDeleted) | (nothing) | Hook called after a a branch of pages has been deleted, called on root page of branch only | |
$pages->found() $pages->found(PageArray $pages, array $details) $pages->found(PageArray $pages, array $details) | (nothing) | Hook called at the end of a $pages->find(), includes extra info not seen in the resulting PageArray | |
$pages->moveReady() $pages->moveReady(Page $page) $pages->moveReady(Page $page) | (nothing) | Hook called when a page is about to be moved to another parent | |
$pages->moved() $pages->moved(Page $page) $pages->moved(Page $page) | (nothing) | Hook called when a page has been moved from one parent to another | |
$pages->publishReady() $pages->publishReady(Page $page) $pages->publishReady(Page $page) | (nothing) | Hook called right before an unpublished page is published and saved | |
$pages->published() $pages->published(Page $page) $pages->published(Page $page) | (nothing) | Hook called after an unpublished page has just been published | |
$pages->renameReady() $pages->renameReady(Page $page) $pages->renameReady(Page $page) | (nothing) | Hook called when a page is about to be renamed i.e. had its name field change) | |
$pages->renamed() $pages->renamed(Page $page) $pages->renamed(Page $page) | (nothing) | Hook called when a page has been renamed (i.e. had its name field change) | |
$pages->restoreReady() $pages->restoreReady(Page $page) $pages->restoreReady(Page $page) | (nothing) | Hook called when a page is about to be moved OUT of the trash (restored) | |
$pages->restored() $pages->restored(Page $page) $pages->restored(Page $page) | (nothing) | Hook called when a page has been moved OUT of the trash (restored) | |
$pages->saveFieldReady() $pages->saveFieldReady(Page $page, Field $field) $pages->saveFieldReady(Page $page, Field $field) | (nothing) | Hook called when Pages::saveField is ready to execute | |
$pages->savePageOrFieldReady() $pages->savePageOrFieldReady(Page $page) $pages->savePageOrFieldReady(Page $page, string $fieldName = '') | (nothing) | Hook called when either of Pages::save or Pages::saveField is ready to execute | |
$pages->saveReady() $pages->saveReady(Page $page) $pages->saveReady(Page $page) | array | Hook called just before a page is saved | |
$pages->saved() $pages->saved(Page $page) $pages->saved(Page $page, array $changes = [], array $values = []) | (nothing) | Hook called after a page is successfully saved | |
$pages->savedField() $pages->savedField(Page $page, Field $field) $pages->savedField(Page $page, Field $field) | (nothing) | Hook called after Pages::saveField successfully executes | |
$pages->savedPageOrField() $pages->savedPageOrField(Page $page) $pages->savedPageOrField(Page $page, array $changes = []) | (nothing) | Hook called after either of Pages::save or Pages::saveField successfully executes | |
$pages->sorted() $pages->sorted(Page $page) $pages->sorted(Page $page, bool $children = false, int $total = 0) | (nothing) | Hook called after a page has been sorted, or had its children re-sorted | |
$pages->statusChangeReady() $pages->statusChangeReady(Page $page) $pages->statusChangeReady(Page $page) | (nothing) | Hook called when a page's status is about to be changed and saved | |
$pages->statusChanged() $pages->statusChanged(Page $page) $pages->statusChanged(Page $page) | (nothing) | Hook called when a page status has been changed and saved | |
$pages->templateChanged() $pages->templateChanged(Page $page) $pages->templateChanged(Page $page) | (nothing) | Hook called when a page's template has been changed | |
$pages->trashReady() $pages->trashReady(Page $page) $pages->trashReady(Page $page) | (nothing) | Hook called when a Page is about to be trashed | |
$pages->trashed() $pages->trashed(Page $page) $pages->trashed(Page $page) | (nothing) | Hook called when a page has been moved to the trash | |
$pages->unpublishReady() $pages->unpublishReady(Page $page) $pages->unpublishReady(Page $page) | (nothing) | Hook called right before a published page is unpublished and saved | |
$pages->unpublished() $pages->unpublished(Page $page) $pages->unpublished(Page $page) | (nothing) | Hook called after published page has just been unpublished | |