1) Directory Structure
I’m using my-plugins directory on Desktop and it looks like
2) Symlink to project
When I need to work on my plugins, just symlink to current WordPress’ plugins directory.
3) Deploy like a Boss
After works done, just run “plugin-deploy” command. I’ve added “plugin-deploy” as alias, you can add them to export path as well.
alias plugin-deploy='sh /Users/mustafauysal/scripts/plugin-deploy.sh' alias plugin-tag='sh /Users/mustafauysal/scripts/plugin-tag.sh'
1) Use WP-CLI to generate plugins
You can use wp scaffold plugin foo-bar to generate “foo-bar” plugin, these scripts will respect .distignore file (Your plugins will be clean on WordPress.org)
2) Don’t tag plugins which contains too many objects
Yeah, I did that mistake for my https://github.com/mustafauysal/compressed-emoji plugin and..