Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc Needed: Add must-use plugin using Composer #96

Open
Tailzip opened this issue Feb 23, 2017 · 3 comments
Open

Doc Needed: Add must-use plugin using Composer #96

Tailzip opened this issue Feb 23, 2017 · 3 comments

Comments

@Tailzip
Copy link

Tailzip commented Feb 23, 2017

Hi,

How can I add a must-use plugin using Composer?

Thanks!

@xyu
Copy link
Owner

xyu commented Feb 24, 2017

Take a look at one of the MU plugins that comes with this repo already, secure-db-connection. You will first need to install the plugin via Composer's require:

https://github.com/xyu/heroku-wp/blob/cfe7105/composer.json#L22

Then add that plugin to the MU plugin custom installer path:

https://github.com/xyu/heroku-wp/blob/cfe7105/composer.json#L66

@xyu xyu closed this as completed Feb 24, 2017
@Tailzip
Copy link
Author

Tailzip commented Mar 1, 2017

I finally manage to add one (S3 Uploads). After you add the plugin to the MU plugin custom installer path in your composer.json file, you also need to create a symlink in public/wp-content/mu-plugins that points to plugin's main file.

In my case, I ran this command inside public/wp-content/mu-plugins: ln -s s3-uploads/s3-uploads.php s3-uploads.php.

It would be nice to add a small paragraph in the README :)

@xyu
Copy link
Owner

xyu commented Mar 2, 2017

@Tailzip good point I forgot about the symlink part of that process going to reopen this issue to get that fixed. 🙂

@xyu xyu reopened this Mar 2, 2017
@xyu xyu changed the title Add must-use plugin using Composer Doc needed: Add must-use plugin using Composer Mar 8, 2017
@xyu xyu added the help wanted label Mar 8, 2017
@xyu xyu changed the title Doc needed: Add must-use plugin using Composer Doc Needed: Add must-use plugin using Composer Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants