backend_orders

Adds custom content to “Orders” section.

Shop-Script

Input (passed by reference)

No specific parameters.
… your plugin code …

Output

{$backend_orders.%plugin_id%.sidebar_top_li}

Custom elements at the top of left sidebar next to items ”Processing” and “All orders”.

{$backend_orders.%plugin_id%.sidebar_bottom_li}

Custom elements at the bottom of left sidebar next to link “Discount coupons”.

{$backend_orders.%plugin_id%.sidebar_section}

Custom blocks in left sidebar under block “Order states”.

Shop-Script

Plugin code example

PHP

public function backendOrders()
{
    return array(
        'sidebar_top_li'    => '<li><a href="">'._wp('My top link').'</a></li>',
        'sidebar_bottom_li' => '<li><a href="">'._wp('My bottom link').'</a></li>',
        'sidebar_section'   => '<div class="block">'.shopMyPluginHelper::getOrdersData().'</div>',
    );
}