acf_pro_delete_license_option()ACF 6.2.6

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

Хуков нет.

Возвращает

true|false. The result of the deletion request.

Использование

acf_pro_delete_license_option( $option_name );
$option_name(строка) (обязательный)
The option name to load.

Список изменений

С версии 6.2.6 Введена.

Код acf_pro_delete_license_option() ACF 6.4.2

function acf_pro_delete_license_option( $option_name ) {
	if ( acf_pro_is_legacy_multisite() && acf_is_multisite_sub_site() ) {
		return delete_blog_option( get_main_site_id(), $option_name );
	}

	return delete_option( $option_name );
}