public function removeMetaBoxes()
    {
        if (function_exists('get_field')) {
            if (get_field('event_update_button', 'option') == false) {
                remove_meta_box('submitdiv', $this->post_type, 'side');
            }
        }
        remove_meta_box('acf-group_56c33cf1470dc', $this->post_type, 'side');
        remove_meta_box('pageparentdiv', $this->post_type, 'side');
    }
public function removeMetaBoxes()
    {
        if (function_exists('get_field')) {
            if (get_field('event_update_button', 'option') == false) {
                remove_meta_box('submitdiv', $this->post_type, 'side');
            }
        }
        remove_meta_box('acf-group_56c33cf1470dc', $this->post_type, 'side');
        remove_meta_box('pageparentdiv', $this->post_type, 'side');
    }
public function removeMetaBoxes ( ) { if ( function_exists ( 'get_field' ) ) { if ( get_field ( 'event_update_button' , 'option' ) == false ) { remove_meta_box ( 'submitdiv' , $ this -> post_type , 'side' ) ; } } remove_meta_box ( 'acf-group_56c33cf1470dc' , $ this -> post_type , 'side' ) ; remove_meta_box ( 'pageparentdiv' , $ this -> post_type , 'side' ) ; }
Remove meta boxes from edit Event view
Remove meta boxes from edit Event view