Skip to content

Add type: wordpress-plugin to composer.json to help with setting up custom installation paths#10

Merged
scottf-tvw merged 1 commit intoTVWIT:mainfrom
sdunham:update/composer-type
Mar 21, 2025
Merged

Add type: wordpress-plugin to composer.json to help with setting up custom installation paths#10
scottf-tvw merged 1 commit intoTVWIT:mainfrom
sdunham:update/composer-type

Conversation

@sdunham
Copy link
Contributor

@sdunham sdunham commented Mar 21, 2025

Super tiny PR which adds a type of wordpress-plugin which is one of the several supported WordPress types for the Composer installers package. This allows you to set up custom installer paths for WP plugins like this via your project's composer.json file:

"extra": {
  "installer-paths": {
    "wp/wp-content/plugins/{$name}": [
      "type:wordpress-plugin"
    ],
  },
}

@scottf-tvw scottf-tvw merged commit afefcc3 into TVWIT:main Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants