Snippets: Completely Disable Gallery Metabox

add_filter( 'wpex_gallery_metabox_post_types', '__return_empty_array' );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)