Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove Genesis Custom Post Type Archive Settings Metaboxes
* Remove metaboxes from Genesis Custom Post Type Archive Settings
* @author Joshua David Nelson,
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' );

This comment has been minimized.

Copy link

commented Jan 8, 2016

Have you had any success adding meta boxes, Joshua?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.