backend_page_edit

Allows adding of custom content to the top info page editing toolbar.

Shop-Script

Input (passed by reference)

$params array Associative array of the page being edited, from the database table shop_page.
… your plugin code …

Output

{$backend_page_edit.%plugin_id%.action_button_li}

HTML code of a custom <li> element in the page editing toolbar.

Shop-Script

Plugin code example

PHP

public function backendPageEdit($params)
{
    return [
        'action_button_li' => '<li><span class="gray"><i class="icon16 info"></i>'
            . _wp('Extra info')
            . '</span></li>',
    ];
}