MySLP_Signup_Admin
extends MySLP_Signup_Base_Object
in package
Table of Contents
Properties
- $admin_page_hook : string
- $menu_slug : string
- $settings : array<string|int, mixed>
Methods
- __construct() : mixed
- create_menu() : void
- Create an admin menu for this plugin.
- get_instance() : MySLP_Signup_Base_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- render() : void
- Render the settings tab.
- initialize() : mixed
- Do these things when this object is invoked.
- save() : void
- Save the settings
- set_options() : void
- Retrieve settings from persistent storage.
Properties
$admin_page_hook
private
string
$admin_page_hook
$menu_slug
private
string
$menu_slug
= 'myslp-signup-settings'
$settings
private
array<string|int, mixed>
$settings
= array('myslp_dashboard_api' => array('label' => 'API Key', 'desc' => 'The MySLP Dashboard API Key.', 'value' => \null), 'myslp_target_site_options' => array('label' => 'Signup REST Endpoint', 'desc' => 'SLP SaaS REST URL for signing up.', 'value' => \null), 'myslp_sa_route' => array('label' => 'Actions REST Endpoint', 'desc' => 'Dashboard REST URL for actions.', 'value' => \null), 'myslp_ga_tracking_id' => array('label' => 'Google Analytics Tracking', 'desc' => '(DEFUNCT: not used). Enter your UA-######-# number to track this site.', 'value' => \null), 'myslp_ga_domain' => array('label' => 'Google Analytics Target Domain', 'desc' => '(DEFUNCT: not used). Enter the full domain name (without protocol) being tracked with the GA UA-######-# id.', 'value' => \null))
Methods
__construct()
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
create_menu()
Create an admin menu for this plugin.
public
create_menu() : void
get_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([null|array<string|int, mixed> $options = array() ]) : MySLP_Signup_Base_Object
Parameters
- $options : null|array<string|int, mixed> = array()
-
object init params
Return values
MySLP_Signup_Base_Objectrender()
Render the settings tab.
public
render() : void
initialize()
Do these things when this object is invoked.
protected
initialize() : mixed
save()
Save the settings
private
save() : void
set_options()
Retrieve settings from persistent storage.
private
set_options() : void