Util

Utility functions for WooCommerce Private Store.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

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_store_locked()  : mixed
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_store_locked()

public static is_store_locked() : mixed
Return values
mixed

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
Return values
mixed

Search results