backend_settings_affiliate
Adds custom settings to backend’s “Settings → Affiliate program” section.
Shop-Script
Input (passed by reference)
No specific parameters.
… your plugin code …
Output
$return['id']
Plugin ID.
$return['name']
Localized setting name.
$return['url']
URL at which a plugin returns its custom settings’ HTML code.
Shop-Script
Plugin code example
PHP
public function backendSettingsAffiliate()
{
return [
'id' => $this->getId(),
'name' => _wp('My affiliate plugin'),
'url' => '?plugin=' . $this->getId() . '&module=affiliate&action=settings'
];
}









