Created
October 28, 2015 18:35
-
-
Save jmsmrgn/fc3efa1ef20005cb433e to your computer and use it in GitHub Desktop.
WP - Add pdf media type filter to media manager
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add pdf media type filter to media manager | |
*/ | |
function modify_post_mime_types($post_mime_types) { | |
$post_mime_types['application/pdf'] = array(__('PDFs'), __('Manage PDFs'), _n_noop('PDF <span class="count">(%s)</span>', 'PDFs <span class="count">(%s)</span>')); | |
return $post_mime_types; | |
} | |
add_filter( 'post_mime_types', 'modify_post_mime_types' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment