Created
March 26, 2012 21:43
-
-
Save tollmanz/2209983 to your computer and use it in GitHub Desktop.
Add enctype to post form
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
<?php | |
function zt_add_enctype { | |
echo ' enctype="multipart/form-data"'; | |
} | |
add_action( 'post_edit_form_tag', 'zt_add_enctype' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment