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
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
= '*'
DEFAULT_AFFILIATE_LINK
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'
SETTING_AFFILIATE_LINK
public
mixed
SETTING_AFFILIATE_LINK
= RCB_OPT_PREFIX . '-affiliate-link'
Properties
$me
Singleton instance.
private
static Affiliate
$me
= null
Methods
enableOptionsAutoload()
Initially `add_option` to avoid autoloading issues.
public
enableOptionsAutoload() : mixed
getAffiliateDescription()
public
getAffiliateDescription() : mixed
getAffiliateLabelBehind()
public
getAffiliateLabelBehind() : mixed
getAffiliateLink()
public
getAffiliateLink() : mixed
getDefaultTexts()
Get the affiliate default texts.
public
getDefaultTexts() : mixed
getInstance()
Get singleton instance.
public
static getInstance() : Affiliate
Tags
Return values
AffiliategetPluginConstantPrefix()
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
public
getPluginConstantPrefix() : string
Tags
Return values
stringlocalize()
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