Documentation

Affiliate
in package
Uses UtilsProvider

Affiliate settings. This is only available in PRO version!

Table of Contents

Constants

DEFAULT_AFFILIATE_LABEL_BEHIND  = '*'
DEFAULT_AFFILIATE_LINK  = ''
OPTION_GROUP  = 'options'
SETTING_AFFILIATE_DESCRIPTION  = RCB_OPT_PREFIX . '-affiliate-description'
SETTING_AFFILIATE_LABEL_BEHIND  = RCB_OPT_PREFIX . '-affiliate-label-behind'
SETTING_AFFILIATE_LINK  = RCB_OPT_PREFIX . '-affiliate-link'

Properties

$me  : Affiliate
Singleton instance.

Methods

enableOptionsAutoload()  : mixed
Initially `add_option` to avoid autoloading issues.
getAffiliateDescription()  : mixed
getAffiliateLabelBehind()  : mixed
getAffiliateLink()  : mixed
getDefaultTexts()  : mixed
Get the affiliate default texts.
getInstance()  : Affiliate
Get singleton instance.
getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
localize()  : mixed
Localize frontend.
register()  : mixed
Register settings.
__construct()  : mixed
C'tor.

Constants

DEFAULT_AFFILIATE_LABEL_BEHIND

public mixed DEFAULT_AFFILIATE_LABEL_BEHIND = '*'
public mixed DEFAULT_AFFILIATE_LINK = ''

OPTION_GROUP

public mixed OPTION_GROUP = 'options'

SETTING_AFFILIATE_DESCRIPTION

public mixed SETTING_AFFILIATE_DESCRIPTION = RCB_OPT_PREFIX . '-affiliate-description'

SETTING_AFFILIATE_LABEL_BEHIND

public mixed SETTING_AFFILIATE_LABEL_BEHIND = RCB_OPT_PREFIX . '-affiliate-label-behind'
public mixed SETTING_AFFILIATE_LINK = RCB_OPT_PREFIX . '-affiliate-link'

Properties

Methods

enableOptionsAutoload()

Initially `add_option` to avoid autoloading issues.

public enableOptionsAutoload() : mixed

getAffiliateDescription()

public getAffiliateDescription() : mixed

getAffiliateLabelBehind()

public getAffiliateLabelBehind() : mixed
public getAffiliateLink() : mixed

getDefaultTexts()

Get the affiliate default texts.

public getDefaultTexts() : mixed

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

localize()

Localize frontend.

public localize(array<string|int, mixed> $arr, string $context) : mixed
Parameters
$arr : array<string|int, mixed>
$context : string

register()

Register settings.

public register() : mixed

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results