ACF\Pro\Blocks
Bindings_Editor::enqueue_block_editor_assets
Enqueues the JS block bindings source script on block editor screens.
Метод класса: Bindings_Editor{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$Bindings_Editor = new Bindings_Editor(); $Bindings_Editor->enqueue_block_editor_assets();
Код Bindings_Editor::enqueue_block_editor_assets() Bindings Editor::enqueue block editor assets ACF 6.8.8
public function enqueue_block_editor_assets() {
if ( ! acf_get_setting( 'enable_block_bindings' ) ) {
return;
}
// JS bindings layer requires the datastore for live editor preview/editing.
if ( ! acf_is_using_datastore() ) {
return;
}
wp_enqueue_script( 'acf-field-bindings' );
}