Skip to content

Work only on specific plugins or themes

Alessandro Fazzi edited this page Nov 27, 2019 · 1 revision

You may need to push/pull only specific plugins, but wordmove -p flag considers all the plugins folder.

It's true that you could exclude all the other plugins, but the list could change from time to time.

There is a little trick from the rsync manual that could help you: even if you compile an exclusion (exclude section in movefile.yml or --exclude flag at rsync's command-line), if you'll add a + sign at the beginning of the pattern it will be considered as an addition.

It's mind blowing, but it works. Read the man page to grab more info or if you don't believe me ;)

Example:

exclude:
  - "+ wp-content/plugins/plugin_1/"
  - "wp-content/plugins/*"

will exclude all the plugins but plugin_1.

The same works for any folder thus also for themes.