A simple mirror of the official Kinsta Mu Plugin with added Composer/Bedrock support.
For latest version/info please see the official Kinsta MU Plugin page.
- Add this plugin repo to
repositories
in your Bedrockcomposer.json
file:"repositories": { "wpackagist": { "type": "composer", "url": "https://wpackagist.org", "only": [ "wpackagist-plugin/*", "wpackagist-theme/*" ] }, + "kinsta-mu-plugins": { + "type": "vcs", + "url": "[email protected]:retlehs/kinsta-mu-plugins" + },
- Add the plugin requirement with specific version number (or
*
for latest) tocomposer.json
:"require": { "php": ">=7.4", "composer/installers": "^2.0", ... + "kinsta/kinsta-mu-plugins": "*", ... }
- Run
composer update
from the Bedrock directory.
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
*/
define('KINSTA_CDN_USERDIRS', 'app');
/**
* Fix Kinsta MU Plugins URL path with Bedrock
*/
$mu_plugins_url = Config::get('WP_CONTENT_URL') . '/mu-plugins';
define('KINSTAMU_CUSTOM_MUPLUGIN_URL', "{$mu_plugins_url}/kinsta-mu-plugins");