backend_menu

Adds custom items to main menu of Shop-Script backend.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_menu.%plugin_id%.aux_li}

Extra links at page top next to “Import/export”, “Settings”, “Плагины”.

{$backend_menu.%plugin_id%.core_li}

Extra links next to main navigation items “Orders”, “Customers”, “Products”, etc.

Shop-Script

Plugin code example

PHP

public function backendMenu()
{
    return array(
        'aux_li'  => '<li class="no-tab"><a href="">'._wp('Aux menu link').'</a></li>',
        'core_li' => '<li class="no-tab"><a href="">'._wp('Core menu link').'</a></li>',
    );
}