page_save
Triggered after saving of an info page.
Shop-Script
Input (passed by reference)
$params['page'] array Associative array of the page being saved, from the database table shop_page.
$params['old'] array|null Page properties registered before the saving. Or NULL if a new page has just been saved.
$params['old'] array|null Page properties registered before the saving. Or NULL if a new page has just been saved.
… your plugin code …
Output
Shop-Script
Plugin code example
PHP
public function pageSave($params)
{
if (!strlen(trim($params['page']['content'])) && strlen(trim(ifset($params, 'old', 'content', '')))) {
waLog::log(
sprintf(
_wp('Contents of page #%d deleted during saving.'),
$params['page']['id']
),
'shop/plugins/' . $this->id . 'page-save.log'
);
}
}









