Settings_Util

Utility functions for WooCommerce settings.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

version
1.1
deprecated

Replaced by Barn2\WLT_Lib\Admin\Settings_Util

Table of Contents

bool_to_checkbox_setting()  : mixed
checkbox_setting_to_bool()  : mixed
get_checkbox_option()  : mixed
get_custom_attributes()  : mixed

Methods

bool_to_checkbox_setting()

public static bool_to_checkbox_setting(mixed $bool) : mixed
Parameters
$bool : mixed
Return values
mixed

checkbox_setting_to_bool()

public static checkbox_setting_to_bool(mixed $value) : mixed
Parameters
$value : mixed
Return values
mixed

get_checkbox_option()

public static get_checkbox_option(mixed $option[, mixed $default = false ]) : mixed
Parameters
$option : mixed
$default : mixed = false
Return values
mixed

get_custom_attributes()

public static get_custom_attributes(mixed $field) : mixed
Parameters
$field : mixed
Return values
mixed

Search results