Skip to content

Instantly share code, notes, and snippets.

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