Lego2012
1/24/2017 - 9:37 PM

Remove SEO, Scripts and Layouts meta boxes for post types in the WP editor

Remove SEO, Scripts and Layouts meta boxes for post types in the WP editor

<?php
// Code goes in child theme’s functions.php.
add_action( 'init', 'custom_post_type_support', 11 );
function custom_post_type_support() {
    // remove_post_type_support( 'page', array( 'genesis-seo', 'genesis-scripts', 'genesis-layouts' ) );
    remove_post_type_support( 'post-type', 'genesis-seo' );
    remove_post_type_support( 'post-type', 'genesis-scripts' );
    remove_post_type_support( 'post-type', 'genesis-layouts' );
}