ACF\Pro\Datastore

Localization::enqueuepublicACF 6.8.1

Enqueues the datastore script and localizes the field store data when the datastore is enabled.

Method of the class: Localization{}

No Hooks.

Returns

null. Nothing (null).

Usage

$Localization = new Localization();
$Localization->enqueue();

Changelog

Since 6.8.1 Introduced.

Localization::enqueue() code ACF 6.8.8

public function enqueue() {
	if ( ! acf_is_using_datastore() ) {
		return;
	}

	wp_enqueue_script( 'acf-datastore' );
	$this->localize_field_store_data();
}