//========== //NO LOGOUT CONFIRMATION /* add_action('check_admin_referer', 'logout_without_confirm', 10, 2); function logout_without_confirm($action, $result) { if ($action…
Remove total theme metabox from portfolio CPT
This is the snippet:
//hide meta box from portfolio
add_filter( 'wpex_main_metaboxes_post_types', function( $types ) {
// Add to my custom-type post type
//$types[] = 'portfolio';
// Remove from blog posts
unset( $types['portfolio'] );
// Return post types array
return $types;
}, 40 );
