SLP_Power_Pages_UI
extends SLPlus_BaseClass_Object
in package
UI pages stuff on loaded of using pages is enabled.
Table of Contents
Properties
- $slplus : SLPlus
- $ui : SLP_Power_UI
- $ui : mixed
- $uses_slplus : bool
- $slplus : mixed
- $uses_slplus : 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() : SLPlus_BaseClass_Object
- 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
$slplus
public
SLPlus
$slplus
$ui
public
SLP_Power_UI
$ui
$ui
public
mixed
$ui
$uses_slplus
public
bool
$uses_slplus
Set to true (default) if the object needs access to the SLPlus plugin object.
$slplus
protected
mixed
$slplus
$uses_slplus
protected
mixed
$uses_slplus
= \true
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() ]) : SLPlus_BaseClass_Object
TODO: PHP7.4 and PHP8.0 the static instance variable returns an object matching $class TODO: PHP8.1 the static instance continually returns the FIRST object (SLP_Admin_Helper) every time -- it is like PHP8.1 static instance is bound to base_class-object versus the calling class object
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
SLPlus_BaseClass_Objectset_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
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