backend_notification_save

Triggered on saving of order action notification settings.

Shop-Script

Input (passed by reference)

$params['notification'] array Main notification properties from table 'shop_notification'.
$params['params'] array Additional notification properties from table 'shop_notification_params'.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function backendNotificationSave($params)
{
    $notification = $params['notification'];
    $notification_params = $params['params'];

    waLog::log(
        _wp('Notification:')
            . PHP_EOL
            . wa_dump_helper($notification)
            . PHP_EOL
            . PHP_EOL
            . 'Params:'
            . PHP_EOL
            . wa_dump_helper($notification_params)
            . PHP_EOL
            . PHP_EOL,
        'shop/plugins/my/notification-save.log'
    );
}