Util
Utility functions for WooCommerce Private Store.
Tags
Table of Contents
- array_filter_positive_int() : mixed
- filter_var_positive_int() : mixed
- get_page_editor_type() : string
- Get the type of editor enabled for a post.
- get_protected_other_pages_ids() : array<string|int, mixed>
- Get the list of other protected pages.
- get_settings_list() : mixed
- is_classic_editor_plugin_enabled() : bool
- Check if the classic editor plugin is enabled.
- is_falsy() : bool
- Determine if a value is a falsy value.
- is_store_locked() : mixed
- is_truthy() : bool
- Determine if a value is a truthy value.
- store_locked() : mixed
- wc_object_types() : mixed
- wc_store_page_ids() : mixed
Methods
array_filter_positive_int()
public
static array_filter_positive_int(mixed $array) : mixed
Parameters
- $array : mixed
Return values
mixed —filter_var_positive_int()
public
static filter_var_positive_int(mixed $var) : mixed
Parameters
- $var : mixed
Return values
mixed —get_page_editor_type()
Get the type of editor enabled for a post.
public
static get_page_editor_type(string $page_id) : string
Parameters
- $page_id : string
Return values
string —get_protected_other_pages_ids()
Get the list of other protected pages.
public
static get_protected_other_pages_ids() : array<string|int, mixed>
Return values
array<string|int, mixed> —get_settings_list()
public
static get_settings_list(mixed $plugin, mixed $id) : mixed
Parameters
- $plugin : mixed
- $id : mixed
Return values
mixed —is_classic_editor_plugin_enabled()
Check if the classic editor plugin is enabled.
public
static is_classic_editor_plugin_enabled() : bool
Return values
bool —is_falsy()
Determine if a value is a falsy value.
public
static is_falsy(string $value) : bool
Parameters
- $value : string
-
The value to check.
Return values
bool —is_store_locked()
public
static is_store_locked() : mixed
Return values
mixed —is_truthy()
Determine if a value is a truthy value.
public
static is_truthy(string $value) : bool
Parameters
- $value : string
-
The value to check.
Return values
bool —store_locked()
public
static store_locked() : mixed
Return values
mixed —wc_object_types()
public
static wc_object_types() : mixed
Return values
mixed —wc_store_page_ids()
public
static wc_store_page_ids() : mixed