New MU Plugin

Create a new must-use plugin for WordPress. Files placed here are auto-loaded and can't be deactivated via the admin UI.

Create a New Plugin File

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

        

Best Practices

Use for critical functionality
No activation/deactivation hooks

⚠️ Important Notes

• MU plugins run on every page load

• Cannot be disabled from admin UI

• Debugging can be tricky

• No error suppression allowed

Autoloaded?

Any PHP file placed here is automatically loaded before themes and plugins. No activation required.

Usage Tips

Ideal for security plugins, site-wide redirects, or core modifications that should always be active.

🔙 Back to MU Plugins