Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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?

Thanks.

share|improve this question
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.