ACF_Form_Gutenberg::__construct
__construct
Setup for class functionality.
Method of the class: ACF_Form_Gutenberg{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Form_Gutenberg = new ACF_Form_Gutenberg(); $ACF_Form_Gutenberg->__construct();
Changelog
| Since 5.8.0 | Introduced. |
ACF_Form_Gutenberg::__construct() ACF Form Gutenberg:: construct code ACF 6.0.4
function __construct() {
// Add actions.
add_action( 'enqueue_block_editor_assets', array( $this, 'enqueue_block_editor_assets' ) );
// Ignore validation during meta-box-loader AJAX request.
add_action( 'acf/validate_save_post', array( $this, 'acf_validate_save_post' ), 999 );
}