0

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.

2
  • 1
    Are these private themes? Or themes hosted on wordpress.org? If the latter, WordPress already supports installing themes over HTTP. Commented Mar 16, 2011 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
    Commented Mar 21, 2011 at 19:00

1 Answer 1

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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