acf_is_using_datastore()ACF 6.8.1

Whether the ACF datastore is enabled.

The datastore requires WordPress 6.7+ and can be enabled via the acf/settings/enable_datastore filter.

Hooks from the function

Returns

true|false.

Usage

acf_is_using_datastore();

Changelog

Since 6.8.1 Introduced.

acf_is_using_datastore() code 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 );
}