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 array(
        'id'   => 'myplugin',
        'name' => _wp('My affiliate plugin'),
        'url'  => '?plugin=myplugin&module=affiliate&action=settings'
    );
}