Store Locator Plus®

SLP_Settings_dropdown extends SLP_Setting
in package

The dropdown setting.

Table of Contents

Properties

$allowed_tags  : array<string|int, object>
$custom  : mixed
$data_field  : mixed
$description  : mixed
$disabled  : mixed
$display_value  : mixed
$empty_ok  : mixed
$get_items_callback  : mixed
$id  : mixed
$label  : mixed
$name  : mixed
$onChange  : mixed
$placeholder  : mixed
$related_to  : mixed
$selectedVal  : mixed
$show_label  : mixed
$slplus  : SLPlus
$type  : mixed
$uses_slplus  : mixed
$uses_slplus  : bool
$value  : mixed
$vue  : mixed
$wrapper  : mixed
$attributes  : mixed
$classes  : mixed
$content  : mixed
$data  : mixed
$slplus  : mixed

Methods

__construct()  : mixed
__get()  : SLPlus_BaseClass_Object
__isset()  : bool
display()  : mixed
Render the setting using the content from your override get_content().
filter_safe_style_css_for_admin()  : array<string|int, mixed>
Allow all inline CSS on the admin tabs.
filter_wp_kses_allowed_admin_tags()  : mixed
Tell KSES these tags are allowed on our admin settings pages so wpcs does not freak out.
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
render_description()  : mixed
Render the description if needed.
set_properties()  : mixed
Set our properties.
at_startup()  : mixed
Override this in your class to do things at startup after we are initialized. Optional.
get_attribute_string()  : string
Create the HTML attribute string by joining the attributes array.
get_classes_string()  : string
Create the HTML classes string by joining the classes array.
get_content()  : string
The dropdown HTML.
get_data_string()  : string
Create the HTML data string by joining the data array.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.
render_label()  : mixed
Render the label if needed.
set_display_value()  : mixed
Set the display value
wrap_in_default_html()  : mixed
Wrap our HTML in default divs.
add_base_classes()  : mixed
Add our base classes
set_attributes()  : mixed
Set extra attributes.
set_data()  : mixed
Set the data.
set_disabled_attribute()  : mixed
Set disabled attribute
set_id()  : mixed
Set the ID
set_on_change_attribute()  : mixed
Set onChange attribute
set_placeholder_attribute()  : mixed
Set placeholder attribute
set_value()  : mixed
Set the value

Properties

$allowed_tags

public array<string|int, object> $allowed_tags = array()

$uses_slplus

public bool $uses_slplus

Set to true (default) if the object needs access to the SLPlus plugin object.

Methods

__construct()

public __construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

__isset()

public __isset(string $property) : bool
Parameters
$property : string
Return values
bool

display()

Render the setting using the content from your override get_content().

public display() : mixed

Only override this if you do not want the standard HTML wrapper.

filter_safe_style_css_for_admin()

Allow all inline CSS on the admin tabs.

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

filter_wp_kses_allowed_admin_tags()

Tell KSES these tags are allowed on our admin settings pages so wpcs does not freak out.

public filter_wp_kses_allowed_admin_tags( $allowed_tags) : mixed

It does not look like there is a valid esc* or kses* method that allows echo $var when $var contains valid admin-page tags like or