Snippets: Enable the “Media” Post Settings For Custom Post Types

// Enable the "Media" post settings tab for custom post types
function my_add_meta_media_to_my_custom_type( $array ) {
    $array['media']['post_type'][] = 'my_custom_type';
    return $array;
}
add_filter( 'wpex_metabox_array', 'my_add_meta_media_to_my_custom_type', 40 );
All PHP snippets should be added via a child theme's functions.php file.