A simple mirror of the official Kinsta Mu Plugin with added Composer/Bedrock support.
Note
Kinsta now includes Composer installation instructions in their official docs. However, this package is still useful as it supports versioning, allowing you to pin specific releases in your composer.json.
For latest version/info please see the official Kinsta MU Plugin page.
- Add this plugin repo from the Bedrock directory:
composer config repositories.kinsta-mu-plugins vcs git@github.com:retlehs/kinsta-mu-plugins
- Require the plugin:
composer require kinsta/kinsta-mu-plugins
Enabling white labeling will change the following elements in the WordPress dashboard:
- The branded Kinsta Cache sidebar link will be changed to an unbranded Cache Settings link.
- The Thanks for creating with WordPress and hosting with Kinsta message near the bottom of the dashboard will be replaced with Thank you for creating with WordPress.
- The Kinsta logo on the Cache Control page will be removed or replaced with an image of your choice.
- The links to Kinsta documentation and support will be removed.
define('KINSTAMU_WHITELABEL', true);
define('KINSTAMU_LOGO', 'https://mylogo.com/mylogo.jpg');For more info, refer to the official docs here
The following constants may be required to fix issues with CDN paths + shared plugin asset URLs.
/**
* Kinsta CDN fix for Bedrock
*/
Config::define('KINSTA_CDN_USERDIRS', 'app');
/**
* Fix Kinsta MU Plugins URL path with Bedrock
*/
$mu_plugins_url = Config::get('WP_CONTENT_URL') . '/mu-plugins';
Config::define('KINSTAMU_CUSTOM_MUPLUGIN_URL', "{$mu_plugins_url}/kinsta-mu-plugins");