SLP® phpDocs

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

$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()

set_options()

Retrieve settings from persistent storage.

private set_options() : void

        
On this page

Search results