Reputation:
I'm working on a WordPress theme, and I've just created a repository from the theme folder inside /wp-content/themes/ directory. But now I've moved some code from the functions.php file to two plugins in the /wp-content/plugins/ directory.
Question, can I add the plugins folder to my exiting repository?
Upvotes: 2
Views: 76
Reputation: 12373
You can store them directly in your repo and create symlinks
to them in /wp-content/plugins
. This is a popular method, many people use it to manage their dotfiles
with git
.
Upvotes: 2