ACF\Pro\Datastore
Localization::enqueue
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() 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();
}