woocommerce_settings_get_option( mixed $option_name, mixed $default = '' )

Get a setting from the settings API.


Description Description


Parameters Parameters

$option_name

(Required) Option name to save.

$default

(Optional) Default value to save.

Default value: ''


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/admin/wc-admin-functions.php

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 );
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.