Reputation: 363
My question might sound stupid but is there any way where I can create a WP plugin which when placed in Plugins folder does not appear in WP Admin Console and WP Admins/Users can't deactivate it from UI?
Upvotes: 0
Views: 205
Reputation: 548
What you're searching is called "must-use plugin" or "mu-plugin". An mu-plugin is a plugin that is automatically activated when you install it, and it cannot be deactivated.
Basically, an mu-plugin is like a normal plugin. The only difference is that you will install it in wp-content/mu-plugins
instead of wp-content/plugins
. I wrote a complete guide to mu-plugins on SitePoint if you're interested.
Upvotes: 1