library/Admin/General.php
public function removeUnwantedModuleMetaboxes($postType)
    {
        $publicPostTypes = array_keys(\Municipio\Helper\PostType::getPublic());
        $publicPostTypes[] = 'page';

        if (!in_array($postType, $publicPostTypes)) {
            // Navigation settings
            remove_meta_box('acf-group_56d83cff12bb3', $postType, 'side');

            // Display settings
            remove_meta_box('acf-group_56c33cf1470dc', $postType, 'side');
        }
    }
public function removeUnwantedModuleMetaboxes($postType)
    {
        $publicPostTypes = array_keys(\Municipio\Helper\PostType::getPublic());
        $publicPostTypes[] = 'page';

        if (!in_array($postType, $publicPostTypes)) {
            // Navigation settings
            remove_meta_box('acf-group_56d83cff12bb3', $postType, 'side');

            // Display settings
            remove_meta_box('acf-group_56c33cf1470dc', $postType, 'side');
        }
    }
public function removeUnwantedModuleMetaboxes ( $ postType ) { $ publicPostTypes = array_keys ( \ Municipio \ Helper \ PostType :: getPublic ( ) ) ; $ publicPostTypes [ ] = 'page' ; if ( ! in_array ( $ postType , $ publicPostTypes ) ) { // Navigation settings remove_meta_box ( 'acf-group_56d83cff12bb3' , $ postType , 'side' ) ; // Display settings remove_meta_box ( 'acf-group_56c33cf1470dc' , $ postType , 'side' ) ; } }
Removes unwanted metaboxes from the module post types
@param  string $postType Post type
@return void
Removes unwanted metaboxes from the module post types