woocommerce_settings_get_option()
Get a setting from the settings API.
No Hooks.
Returns
String.
Usage
woocommerce_settings_get_option( $option_name, $default );
- $option_name(mixed) (required)
- Option name to save.
- $default(mixed)
- Default value to save.
Default: ''
woocommerce_settings_get_option() woocommerce settings get option code WC 10.3.3
function woocommerce_settings_get_option( $option_name, $default = '' ) {
if ( ! class_exists( 'WC_Admin_Settings', false ) ) {
include dirname( __FILE__ ) . '/class-wc-admin-settings.php';
}
return WC_Admin_Settings::get_option( $option_name, $default );
}