SLP_Power_Pages_UI
extends SLPlus_BaseClass_Object
in package
UI pages stuff on loaded of using pages is enabled.
Table of Contents
Properties
- $addon : object
- $myslp : MySLP
- $slplus : SLPlus
- $ui : mixed
- $uses_myslp : bool
- $uses_slplus : bool
- $slug : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- add_hooks_and_filters() : mixed
- Add WP Hooks and Filters.
- fetch_location_for_post() : mixed
- Set the location data for each run through the custom post types in a loop (or a single display).
- get_instance() : static
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- set_properties() : mixed
- Set our properties.
- setup_css_and_js() : mixed
- Enqueue the CSS and JS as needed.
- initialize() : mixed
- Do these things when this object is invoked. Override in your class.
- has_pages_content() : mixed
- Returns true if current page has Pages content.
Properties
$addon
public
object
$addon
$myslp
public
MySLP
$myslp
$slplus
public
SLPlus
$slplus
$ui
public
mixed
$ui
$uses_myslp
public
bool
$uses_myslp
Set to true to add a $myslp property pointing to global $myslp
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slug
protected
mixed
$slug
Methods
__construct()
public
__construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
__get()
public
__get(string $property) : SLPlus_BaseClass_Object
Parameters
- $property : string
Return values
SLPlus_BaseClass_Object__isset()
public
__isset(string $property) : bool
Parameters
- $property : string
Return values
booladd_hooks_and_filters()
Add WP Hooks and Filters.
public
add_hooks_and_filters() : mixed
Tags
fetch_location_for_post()
Set the location data for each run through the custom post types in a loop (or a single display).
public
fetch_location_for_post(WP_Post $post_object) : mixed
Parameters
- $post_object : WP_Post
Tags
get_instance()
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
public
static get_instance([bool $no_global = false ][, mixed $params = array() ]) : static
Parameters
- $no_global : bool = false
-
set to true to skip assigning object to SLP global as a property.
- $params : mixed = array()
-
object init params
Return values
staticset_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
setup_css_and_js()
Enqueue the CSS and JS as needed.
public
setup_css_and_js() : mixed
Enqueues the 'slp_core' script. That means it is loaded somewhere prior to this.
initialize()
Do these things when this object is invoked. Override in your class.
protected
initialize() : mixed
has_pages_content()
Returns true if current page has Pages content.
private
has_pages_content() : mixed