/* Add some String for Media */ function add_capbility_media( $string, $post ) { if ( $post ) { $post_type_object = get_post_type_object( $post->post_type ); } else { $post_type_object = get_post_type_object( 'post' ); } $new_string = array( // From URL. 'insertFromUrlTitle' => __( 'Insert from URL' ), // Featured Images. 'setFeaturedImageTitle' => $post_type_object->labels->featured_image, 'setFeaturedImage' => $post_type_object->labels->set_featured_image, // Playlist. 'createPlaylistTitle' => __( 'Create audio playlist' ), // Video Playlist. 'createVideoPlaylistTitle' => __( 'Create video playlist' ), ); return array_replace( $string, $new_string ); } add_filter( 'media_view_strings', 'add_capbility_media', 99, 2);