WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm writing a plugin and want to have a feature where, in the Admin area, the user will click on a link and it will download a theme to the /themes directory on their server. How would I do this?


share|improve this question
Are these private themes? Or themes hosted on wordpress.org? If the latter, WordPress already supports installing themes over HTTP. – TheDeadMedic Mar 16 '11 at 23:53
That was just an example. Just creating some local plugins to help myself with development. I figured it out using fopen/fread/etc. – GavinR Mar 21 '11 at 19:00
up vote 1 down vote accepted

Ehm... You are writing the plugin or thinking about it? Could you show us some stuff that you already did? You should check the permissions on the server where you want to upload the files. Then - in case - change chmod, upload and then change chmod back for sec. reasons. Maybe the update class will help you a little further.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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