Skip to content

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

Note: Since Total 5.0 you can now enable this tab via the Post Types Unlimited plugin.

// 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 child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top