Create a new must-use plugin for WordPress. Files placed here are auto-loaded and can't be deactivated via the admin UI.
1. Add your plugin file here (e.g., my-mu-plugin.php)
2. Add standard WordPress plugin header at top
3. All MU plugins are automatically enabled
4. Best for security tools, core functionality
// my-mu-plugin.php
• MU plugins run on every page load
• Cannot be disabled from admin UI
• Debugging can be tricky
• No error suppression allowed
Any PHP file placed here is automatically loaded before themes and plugins. No activation required.
Ideal for security plugins, site-wide redirects, or core modifications that should always be active.