This WordPress plugin says NO to jQuery on the frontend.
This WordPress plugin says "NO" to jQuery on the frontend!
composer require borgenfalkskott/bs-wp-no-jquery
Simply add it to
app/mu-plugins/ to have Bedrock autoload it.
If you are not using Bedrock, simply add an autoloader file in
wp-content/mu-plugins/ like this, to have WordPress run this plugin:
// autoloader.php: <?php /** * WordPress Mu Plugin Autoloader */ require_once __DIR__ . '/bs-wp-no-jquery/bs-wp-no-jquery.php'; ?>
Nowadays it stands for "must use plugin", meaning that it is activated automatically by just adding it to the
Single file mu-plugins that sits directly inside the
mu-plugins folder, are loaded automatically by WordPress.
For mu-plugins that live inside a subfolder, they need to be autoloaded like the example above or by using something like Bedrock.
Read more about mu-plugins here.
⭐️ Star this repo on GitHub.
⭐️ Star this package on Packagist.
❤️ Buy me a coffee.