Skip to content
Site Under Re-Design: We're updating & improving the docs! Some layouts or content may look broken or inconsistent during this process. If you’re unable to find an article, please use the search bar while we restructure and optimize the sidebar navigation.

Snippet: 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 );
All PHP snippets should be added via child theme's functions.php file or via a plugin.
We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top