Adding/Removing Page Settings Metabox From Post WordPress

add_filter( 'wpex_main_metaboxes_post_types', function( $types ) {
 
  // Add to my custom-type post type
  $types[] = 'custom-type';
  $types[] = 'custom-type-2';
  $types[] = 'custom-type-3';
 
  // Remove from blog posts
  unset( $types['post'] );
 
  // Return post types array
  return $types;
  
}, 20 );
See also  Change number of products display in WooCommerce product listing page

Leave a Reply

Your email address will not be published. Required fields are marked *