Remove Genesis Custom Post Type Archive Metaboxes

Remove metaboxes from the genesis custom post type archive settings page.

<?php
/**
* Remove metaboxes from Genesis Custom Post Type Archive Settings
*
* @author Joshua David Nelson, [email protected]
*/
add_action( 'genesis_cpt_archives_settings_metaboxes', 'jdn_remove_genesis_cpt_metabozes' );
function jdn_remove_genesis_cpt_metabozes( $_genesis_cpt_settings_pagehook ) {
// remove main settings
remove_meta_box( 'genesis-cpt-archives-settings', $_genesis_cpt_settings_pagehook, 'main' );
// remove seo settings
remove_meta_box( 'genesis-cpt-archives-seo-settings', $_genesis_cpt_settings_pagehook, 'main' );
// remove layout settings
remove_meta_box( 'genesis-cpt-archives-layout-settings', $_genesis_cpt_settings_pagehook, 'main' );
}

Source: https://gist.github.com/joshuadavidnelson/9a566115d0509be3d878

Tags: ,