backend_customers_list
Adds custom content to "Customers" screen.
Shop-Script
Input (passed by reference)
$params array
$params['hash'] string URL portion of current page corresponding to one of customer selection types: category, search, or filter.
$params['filter'] array Customer selection parameters.
$params['hash'] string URL portion of current page corresponding to one of customer selection types: category, search, or filter.
$params['filter'] array Customer selection parameters.
… your plugin code …
Output
{$backend_customers_list.top_li}
Custom element; e.g., a link, in the area containing customer list management tools.
Shop-Script
Plugin code example
PHP
public function backendCustomersList($params)
{
$link_text = _wp('Manage customers');
$encoded_hash = urlencode($params['hash']);
return [
'top_li' => <<<HTML
<a href="?plugin={$this->id}&module=backend&action=customers&hash={$encoded_hash}" class="button light-gray">{$link_text}</a>
HTML
];
}









