page_delete
Triggered before the deletion of an info page.
Shop-Script
Input (passed by reference)
$params['page'] array Associative array of the page being deleted, from the database table shop_page.
$params['child_ids'] array IDs of child pages.
$params['child_ids'] array IDs of child pages.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function pageDelete($params) { $deleted_page_ids = [$params['page']['id']]; if ($params['child_ids']) { $deleted_page_ids = array_merge($deleted_page_ids, $params['child_ids']); } waLog::log( sprintf( _wp('Deleted pages’ IDs: %s.'), implode(', ', $deleted_page_ids) ), 'shop/plugins/' . $this->id . 'page-delete.log' ); }