ACF\Pro\Blocks
Bindings_Editor::__construct
Constructor.
Method of the class: Bindings_Editor{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Bindings_Editor = new Bindings_Editor(); $Bindings_Editor->__construct();
Bindings_Editor::__construct() Bindings Editor:: construct code ACF 6.8.8
public function __construct() {
// The JS bindings layer relies on the stable registerBlockBindingsSource
// API, which is only available on WP 6.7+.
global $wp_version;
if ( version_compare( $wp_version, '6.7', '<' ) ) {
return;
}
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
}