Snippets: Remove Staff Meta Settings & Image Gallery

// Remove staff settings metabox
add_filter( 'wpex_main_metaboxes_post_types', function( $types ) {
	unset( $types['staff'] );
	return $types;
}, 40 );

// Remove staff gallery
add_filter( 'wpex_gallery_metabox_post_types', function( $types ) {
	$types = array_combine( $types, $types );
	unset( $types['staff'] );
	return $types;
}, 40 );

Snippet Type: PHP

Posted Under: Staff

All PHP snippets should be added via a child theme's functions.php file.