acf_is_using_datastore()
Whether the ACF datastore is enabled.
The datastore requires WordPress 6.7+ and can be enabled via the acf/settings/enable_datastore filter.
Хуки из функции
Возвращает
boolean.
Использование
acf_is_using_datastore();
Список изменений
| С версии 6.8.1 | Введена. |
Код acf_is_using_datastore() acf is using datastore ACF 6.8.8
function acf_is_using_datastore() {
// Bail if not on WordPress 6.7+.
if ( ! version_compare( get_bloginfo( 'version' ), '6.7', '>=' ) ) {
return false;
}
/**
* Filters whether the ACF datastore is enabled.
*
* @since 6.8.1
*
* @param boolean $enabled Whether the datastore is enabled. Default false.
*/
return (bool) apply_filters( 'acf/settings/enable_datastore', false );
}