Discounts implements Registerable, JsonSerializable, Renderable
Registers the discounts tab.
Tags
Interfaces, Classes and Traits
- Registerable
- JsonSerializable
- Renderable
- Defines the interface for a settings tab that can be rendered.
Table of Contents
- MENU_SLUG = 'wdm_options'
- TAB_ID = 'discounts'
- $plugin : Licensed_Plugin
- $title : mixed
- __construct() : mixed
- Get things started.
- enqueue_assets() : void
- Enqueue assets on the setting page.
- get_title() : string
- Get the tab title.
- jsonSerialize() : mixed
- {@inheritdoc}
- output() : void
- Register the settings.
- register() : void
- Register hooks.
- is_wpml_installed() : bool
- Determine if WPML is installed.
Constants
MENU_SLUG
public
mixed
MENU_SLUG
= 'wdm_options'
TAB_ID
public
mixed
TAB_ID
= 'discounts'
Properties
$plugin
private
Licensed_Plugin
$plugin
$title
private
mixed
$title
Methods
__construct()
Get things started.
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
Return values
mixed —enqueue_assets()
Enqueue assets on the setting page.
public
enqueue_assets(string $hook) : void
Parameters
- $hook : string
Return values
void —get_title()
Get the tab title.
public
get_title() : string
Return values
string —jsonSerialize()
{@inheritdoc}
public
jsonSerialize() : mixed
Return values
mixed —output()
Register the settings.
public
output() : void
Return values
void —register()
Register hooks.
public
register() : void
Return values
void —is_wpml_installed()
Determine if WPML is installed.
private
is_wpml_installed() : bool