SLPĀ® phpDocs

MySLP_Deployment_Previews
in package

Discover and route public locator previews for the URL-selected customer site.

Table of Contents

Constants

QUERY_ARG  : string = 'myslp_locator_template'

Properties

$preview_template  : string

Methods

__construct()  : mixed
Register routing before canonical redirects and resolve templates after theme setup.
get_locator_templates()  : array<string|int, mixed>
Build tenant-specific public URLs without creating pages or exposing theme file URLs.
prepare_preview()  : void
Validate the requested identifier against discovery before selecting any theme file.
select_template()  : string
Let WordPress include the validated template, preserving child-theme overrides.
get_templates()  : array<string|int, mixed>
Return the active theme's locator allowlist only after its setup has completed.
is_customer_preview()  : bool
Require an Enterprise plan and an owner resolved from this site's URL, never the visitor.

Constants

Properties

Methods

__construct()

Register routing before canonical redirects and resolve templates after theme setup.

public __construct() : mixed

get_locator_templates()

Build tenant-specific public URLs without creating pages or exposing theme file URLs.

public static get_locator_templates() : array<string|int, mixed>
Return values
array<string|int, mixed>

prepare_preview()

Validate the requested identifier against discovery before selecting any theme file.

public prepare_preview() : void

select_template()

Let WordPress include the validated template, preserving child-theme overrides.

public select_template(string $template) : string
Parameters
$template : string
Return values
string

get_templates()

Return the active theme's locator allowlist only after its setup has completed.

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

is_customer_preview()

Require an Enterprise plan and an owner resolved from this site's URL, never the visitor.

private static is_customer_preview() : bool
Return values
bool
On this page

Search results