SLP® phpDocs

SLP_Settings_checkbox extends SLP_Setting
in package

The checkbox setting.

Table of Contents

Properties

$addon  : object
$allowed_tags  : array<string|int, object>
$custom  : mixed
$data_field  : mixed
$description  : mixed
$disabled  : mixed
$display_value  : mixed
$id  : mixed
$label  : mixed
$myslp  : MySLP
$name  : mixed
$onChange  : mixed
$placeholder  : mixed
$related_to  : mixed
$show_label  : mixed
$slplus  : SLPlus
$type  : mixed
$uses_myslp  : bool
$uses_slplus  : mixed
$value  : mixed
$vue  : mixed
$wrapper  : mixed
$attributes  : mixed
$classes  : mixed
$content  : mixed
$data  : mixed
$slug  : 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()  : static
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 checkbox HTML.
get_data_string()  : string
Create the HTML data string by joining the data array.
initialize()  : mixed
Initialize.
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.

Properties

$allowed_tags

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

$uses_myslp

public bool $uses_myslp

Set to true to add a $myslp property pointing to global $myslp

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(mixed $safe_css_array) : array<string|int, mixed>
Parameters
$safe_css_array : mixed
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(mixed $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