Created
November 22, 2014 10:52
-
-
Save eccentricpixel/5d0141e1f76f9008a0e3 to your computer and use it in GitHub Desktop.
Add tags to media library #WORDPRESS
This file contains 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
// apply tags to attachments | |
function wptp_add_tags_to_attachments() { | |
register_taxonomy_for_object_type( 'post_tag', 'attachment' ); | |
} | |
add_action( 'init' , 'wptp_add_tags_to_attachments' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment