SLP® phpDocs

MySLP_DSRA

Class MySLP_DSRA

Table of Contents

Properties

$account_endpoint  : mixed
$DSIGN_key  : mixed
$myslp_namespace  : mixed
$paypal_options  : mixed
$site_architect_endpoint  : mixed

Methods

__construct()  : mixed
Default things to do/load when running this plugin
activate()  : void
Plugin activation function.
add_account()  : WP_REST_Response
Start adding new sub site here
admin_script()  : void
Include scripts/style for this plugin
edit_account()  : WP_Error|bool|string
Edit user metadata
generate_api_key()  : string
Generate randomize string for an API key
get_account_plan()  : mixed
Get Site Architect Levels
get_endpoint()  : string
Get Endpoint
get_payment_meta()  : array<string|int, mixed>|WP_Error
Get Payment Meta.
myslp_email_reg_data()  : mixed
Email user regarding registration data
myslp_get_base_email()  : array<string|int, mixed>|string
Create username based on email
register_routes()  : void
Register the necessary routes in here
rest_api_options()  : void
Network admin page for generating API key
system_settings()  : void
API setting page
get_api_key()  : mixed
Return our API key (and cache it).
get_sa_allowed_plugins()  : array<string|int, mixed>
Get Site Architect Levels
has_valid_api_key()  : bool
Return true if the specified API key is valid.
save_setting()  : void
Save an admin tab setting.
send_error()  : WP_Error
Send back an error.

Properties

$account_endpoint

private mixed $account_endpoint = 'account'

$myslp_namespace

private mixed $myslp_namespace = 'myslp-signup/v2'

$paypal_options

private mixed $paypal_options = array('api_username' => '', 'api_password' => '', 'api_signature' => '', 'use_ec_sandbox' => '', 'version' => '', 'sbncode' => '', 'use_proxy' => '', 'proxy_host' => '', 'proxy_port' => '')

$site_architect_endpoint

private mixed $site_architect_endpoint = 'site-architect'

Methods

__construct()

Default things to do/load when running this plugin

public __construct() : mixed

activate()

Plugin activation function.

public static activate() : void

add_account()

Start adding new sub site here

public add_account(WP_REST_Request $request) : WP_REST_Response
Parameters
$request : WP_REST_Request
Tags
rest-route

/myslp-signup/v2/account/

Return values
WP_REST_Response

admin_script()

Include scripts/style for this plugin

public admin_script(mixed $hook) : void
Parameters
$hook : mixed

edit_account()

Edit user metadata

public edit_account(WP_REST_Request $request) : WP_Error|bool|string
Parameters
$request : WP_REST_Request
Tags
Param

: id user ID account_status customer account status plan customer subscription plan

Return values
WP_Error|bool|string

generate_api_key()

Generate randomize string for an API key

public generate_api_key() : string
Return values
string

get_account_plan()

Get Site Architect Levels

public get_account_plan() : mixed
Tags
used-by

WP_REST_Server::dispatch()

get_endpoint()

Get Endpoint

public get_endpoint(mixed $endpoint) : string
Parameters
$endpoint : mixed
Return values
string

get_payment_meta()

Get Payment Meta.

public get_payment_meta(WP_REST_Request $request) : array<string|int, mixed>|WP_Error
Parameters
$request : WP_REST_Request
Tags
used-by

MySLP_DSRA::register_routes

used-by

MySLP_Signup_Connector_Dashboard::get_rest

Return values
array<string|int, mixed>|WP_Error

myslp_email_reg_data()

Email user regarding registration data

public myslp_email_reg_data(mixed $site_url, mixed $username, mixed $password, mixed $email) : mixed
Parameters
$site_url : mixed
$username : mixed
$password : mixed
$email : mixed

myslp_get_base_email()

Create username based on email

public myslp_get_base_email(mixed $email) : array<string|int, mixed>|string
Parameters
$email : mixed
Return values
array<string|int, mixed>|string

register_routes()

Register the necessary routes in here

public register_routes() : void

rest_api_options()

Network admin page for generating API key

public rest_api_options() : void

system_settings()

API setting page

public system_settings() : void

get_api_key()

Return our API key (and cache it).

private get_api_key() : mixed

get_sa_allowed_plugins()

Get Site Architect Levels

private get_sa_allowed_plugins() : array<string|int, mixed>
Return values
array<string|int, mixed>

has_valid_api_key()

Return true if the specified API key is valid.

private has_valid_api_key(string $key) : bool
Parameters
$key : string
Return values
bool

save_setting()

Save an admin tab setting.

private save_setting(mixed $message) : void
Parameters
$message : mixed

send_error()

Send back an error.

private send_error() : WP_Error
Return values
WP_Error

        
On this page

Search results