backend_reports_channels

Allows to apply human-readable names to plugin's custom sales channels.

Shop-Script

Input (passed by reference)

$params array Array with keys being channel identifiers as specified in 'sales_channel' order param. Plugins are expected to modify values in this array by setting human-readable names to be shown in channel selector in backend.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function backendReportsChannels(&$params)
{
    if (isset($params['myplugin'])) {
        $params['myplugin'] = _wp('My plugin‘s sales channel');
    }
}