Widget plugin and input file

add_action(‘post_edit_form_tag’, ‘post_edit_form_tag’); function post_edit_form_tag() { echo ‘ enctype=”multipart/form-data”‘; } Add the above code in your active theme’s functions.php file. Then print_r($_file) will display the file array.

How to change url’s in WordPress when changing domain [duplicate]

I had much success using https://github.com/interconnectit/Search-Replace-DB Though there are Plugins for WordPress available that do a Search & Replace, i recommend the above linked script. In older WordPress versions it was possible to move an entire site by simply replacing some strings, but as far as i know, WordPress now creates hashes/indexes for some strings … Read more

Post curl function save twice using plugin hook function wordpress

That is normal behaviour. See this question on WordPress Stack Exchange: Plugin Development: WordPress processes twice on post update. How to skip process on the first? answered by @Hameedullah Khan. WordPress call functions hooked to save_post twice because: first time it saves the post revision. second time it saves the actual post. As Hameedulah suggests, … Read more