backend_notification_add

Allows adding of custom content to the order action notification adding page.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_notification_add.%plugin_id%}

Custom HTML code. By default, it is placed within a hidden block; therefore it might be useful to also add some JavaScript code to display that hidden block.

Shop-Script

Plugin code example

PHP

public function backendNotificationAdd()
{
    $message = _wp('Check the default notification subject.');

    return <<<HTML
        <div class="block errormsg">
            {$message}
        </div>
        <script>
            \$('.notification-plugin-wrapper.add.{$this->id}-plugin').removeClass('hidden');
        </script>
HTML;
}