currently it is pasting file in wp-admin folder, Is there any way I can copy .zip file to /wp-content/themes directory.

Thank You :)


So I found the solution:

copy("http://localhost/medium/theme.zip", get_theme_root() . "/themenew.zip");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.