Created
October 11, 2011 08:15
-
-
Save cointilt/1277547 to your computer and use it in GitHub Desktop.
Enable file uploads in WordPress Posts with enctype
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
add_action ( 'post_edit_form_tag', 'post_edit_form_tag' ); | |
function post_edit_form_tag() | |
{ | |
echo ' enctype="multipart/form-data"'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment