To reference to a local path reference to a wordpress plugin, using Composer, you need do:
-
Add a
repositorypointing to local path (absolute or relative) like the composer.json -
Add a
installer-pathskey to move to a specific folder when install the plugin, only if the target plugin contains contains acomposer.jsonwithtype"wordpress-plugin" -
Reference to a git branch in
requirekey
-
Create a
composer.jsonfile -
Add a
typekey with value "wordpress-plugin" (optionally). The type needs match with defined ininstaller-pathsof the wordpress projectcomposer.json -
Checkout to a branch and develop your feature. The plugin will be a symlink to
wp-content/pluginsfolder.