Skip to content

Instantly share code, notes, and snippets.

@jamiemitchell
Forked from craigsimps/functions.php
Created August 19, 2019 21:32
Show Gist options
  • Save jamiemitchell/6d27f5050605bab95a202ac79970d287 to your computer and use it in GitHub Desktop.
Save jamiemitchell/6d27f5050605bab95a202ac79970d287 to your computer and use it in GitHub Desktop.
<?php
/**
* Remove redundant Genesis meta boxes.
*
* @param string $pagehook Page hook for the Theme Settings page.
*
* @since 1.1.0
*/
add_action( 'genesis_theme_settings_metaboxes', function ( $pagehook ) {
remove_meta_box( 'genesis-theme-settings-version', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-style-selector', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-feeds', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-adsense', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-layout', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-header', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-nav', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-breadcrumb', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-comments', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-posts', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-blogpage', $pagehook, 'main' );
remove_meta_box( 'genesis-theme-settings-scripts', $pagehook, 'main' );
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment