backend_page_edit

Allows adding 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.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 class="gray"><i class="fas fa-info-circle"></i> ' . _wp('Extra info') . '</li>',
        ];
}