/vip-mu-plugins-public

The generated repo for mu-plugins used on the VIP Go platform.

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

VIP MU Plugins

This is the complete MU plugins folder for the WordPress.com VIP next generation hosting platform, assembled without submodules for convenience.

If you wish to issue a pull request for code here, please do so on Automattic/vip-go-mu-plugins.

PHPDoc

You can find selective PHPDoc documentation here: https://automattic.github.io/vip-go-mu-plugins/

Tests

To run PHP linting locally on OSX or Unix/Linux (no setup required, beyond having PHP CLI installed):

cd /path/to/mu-plugins/
make lint

To set up PHPUnit locally (requires a working WordPress development environment, specifically PHP and MySQL):

Notes:

  • You need to replace the %placeholder% strings below with sensible values
  • You DO need an empty DB, because the contents of this DB WILL get trashed during testing
./bin/install-wp-tests.sh %empty_DB_name% %db_user% %db_name%

To run PHPUnit tests locally:

phpunit