backend_customers

Adds custom content to backend’s “Customers” section.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_customers.%plugin_id%.sidebar_top_li}

Custom items under link “All customers”.

{$backend_customers.%plugin_id%.sidebar_section}

Custom blocks in the middle of the sidebar above the “Categories” block.

Shop-Script

Plugin code example

PHP

public function backendCustomers()
{
    return array(
        'sidebar_top_li' => '<li><a href="">'._wp('My plugin’s link').'</li></li>',
        'sidebar_section' => '<div class="block">'._wp('My plugin’s section').'</div>',
    );
}