SLP_Actions
extends SLPlus_BaseClass_Object
in package
Store Locator Plus action hooks.
The methods in here are normally called from an action hook that is called via the WordPress action stack.
Table of Contents
Properties
- $slplus : SLPlus
- $uses_slplus : bool
- $slplus : mixed
- $uses_slplus : mixed
- $scripts_registered : mixed
Methods
- __construct() : mixed
- __get() : SLPlus_BaseClass_Object
- __isset() : bool
- action_AddToPageHelp() : mixed
- Add content tab help to the post and post-new pages.
- add_slp_to_admin_bar() : mixed
- Add SLP setting to the admin bar on the top of the WordPress site.
- admin_menu() : mixed
- Add the Store Locator panel to the admin sidebar.
- get_instance() : SLPlus_BaseClass_Object
- Return an instance of the object which is also registered to the slplus global less the SLP_ part.
- init() : mixed
- Called when the WordPress init action is processed.
- initialize() : mixed
- Things to do at startup.
- ManageTheScripts() : mixed
- Unload The SLP Scripts If No Shortcode
- network_admin_menu() : mixed
- Network menu admin.
- save_screen_options() : mixed
- Save screen options.
- set_properties() : mixed
- Set our properties.
- shutdown() : mixed
- This is called whenever the WordPress shutdown action is called.
- wp_enqueue_scripts() : mixed
- This is called whenever the WordPress wp_enqueue_scripts action is called.
- wp_enqueue_scripts_for_shitty_block_themes() : mixed
- Hack because WP added block theme rendering that fires shortcode processing way earlier than it used to.
- wp_footer() : mixed
- This is called whenever the WordPress shutdown action is called.
- wp_head() : mixed
- Called when the <head> tags are rendered.
Properties
$slplus
public
SLPlus
$slplus
$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
$scripts_registered
private
mixed
$scripts_registered
= \false
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
boolaction_AddToPageHelp()
Add content tab help to the post and post-new pages.
public
action_AddToPageHelp() : mixed
add_slp_to_admin_bar()
Add SLP setting to the admin bar on the top of the WordPress site.
public
add_slp_to_admin_bar( $admin_bar) : mixed
Parameters
admin_menu()
Add the Store Locator panel to the admin sidebar.
public
admin_menu() : mixed
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_Objectinit()
Called when the WordPress init action is processed.
public
init() : mixed
Current user is authenticated by this time.
initialize()
Things to do at startup.
public
initialize() : mixed
ManageTheScripts()
Unload The SLP Scripts If No Shortcode
public
ManageTheScripts() : mixed
network_admin_menu()
Network menu admin.
public
network_admin_menu() : mixed
save_screen_options()
Save screen options.
public
save_screen_options( $status, $option, $value) : mixed
Parameters
set_properties()
Set our properties.
public
set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
- $options : array<string|int, mixed> = array()
shutdown()
This is called whenever the WordPress shutdown action is called.
public
shutdown() : mixed
wp_enqueue_scripts()
This is called whenever the WordPress wp_enqueue_scripts action is called.
public
wp_enqueue_scripts() : mixed
wp_enqueue_scripts_for_shitty_block_themes()
Hack because WP added block theme rendering that fires shortcode processing way earlier than it used to.
public
wp_enqueue_scripts_for_shitty_block_themes( $context[, $parsed = [] ][, $parent = null ]) : mixed
Parameters
wp_footer()
This is called whenever the WordPress shutdown action is called.
public
wp_footer() : mixed
wp_head()
Called when the <head> tags are rendered.
public
wp_head() : mixed