Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I create a zip file installer containing WordPress plugin files?

Tags:

php

zip

wordpress

I have created my first WP plugin. The plugin dir contains several files, "my_plugin.php," a css files, script, readme, etc.

Oddly, I cannot find a thing on the web on "how do I put these files into a zip archive" so that the plugin can be installed via Admin > Plugins "add new."

Windows' "add to zip folder" doesn't work, as the zipped folder is loaded into the media uploads dir on the server.

Thanks!

like image 230
JPate Avatar asked Apr 17 '14 13:04

JPate


1 Answers

The files should be in the root of the archived file.

like image 136
Michael Avatar answered Nov 04 '22 18:11

Michael