acf_pro_get_license_option()ACF 6.2.6

Returns a multisite compatible licensing data value For multisite installs, this is from the main site options if available or the normal option otherwise.

No Hooks.

Returns

Mixed. the resulting option value from cache or database.

Usage

acf_pro_get_license_option( $option_name, $default_value );
$option_name(string) (required)
The option name to load.
$default_value(mixed)
The default value to return if not set.
Default: false

Changelog

Since 6.2.6 Introduced.

acf_pro_get_license_option() code ACF 6.8.8

function acf_pro_get_license_option( $option_name, $default_value = false ) {
	if ( acf_pro_is_legacy_multisite() ) {
		return get_blog_option( get_main_site_id(), $option_name, $default_value );
	}

	return get_option( $option_name, $default_value );
}