Skip to main content
replaced http://wordpress.stackexchange.com/ with https://wordpress.stackexchange.com/
Source Link

When solving this issue ( Change admin language based on user (in single-site)Change admin language based on user (in single-site) ), I did a function so that the plugin would auto-hide from all users except one (me:).

The flaw is that it only auto-hides when active.

At first, it was a mu-plugin, but I had to enable/disable it manually. It really doesn't need to run all the time, as it may slow the site (?) or even contain some sensitive manipulation of the site's language (another question mark).

But mainly the motivation is that I don't want the client activating/deactivating/deleting this plugin (is for my own use), and don't want it cluttering her own plugins list.

So, decided to split the functions in two plugins:

  • One is a Must-Use used to hide the regular one.
  • The other will be activated/deactivated upon necessity and is the one from the above linked issue.

But now I run into another question: how to hide one plugin from the Must-Use listing?

When solving this issue ( Change admin language based on user (in single-site) ), I did a function so that the plugin would auto-hide from all users except one (me:).

The flaw is that it only auto-hides when active.

At first, it was a mu-plugin, but I had to enable/disable it manually. It really doesn't need to run all the time, as it may slow the site (?) or even contain some sensitive manipulation of the site's language (another question mark).

But mainly the motivation is that I don't want the client activating/deactivating/deleting this plugin (is for my own use), and don't want it cluttering her own plugins list.

So, decided to split the functions in two plugins:

  • One is a Must-Use used to hide the regular one.
  • The other will be activated/deactivated upon necessity and is the one from the above linked issue.

But now I run into another question: how to hide one plugin from the Must-Use listing?

When solving this issue ( Change admin language based on user (in single-site) ), I did a function so that the plugin would auto-hide from all users except one (me:).

The flaw is that it only auto-hides when active.

At first, it was a mu-plugin, but I had to enable/disable it manually. It really doesn't need to run all the time, as it may slow the site (?) or even contain some sensitive manipulation of the site's language (another question mark).

But mainly the motivation is that I don't want the client activating/deactivating/deleting this plugin (is for my own use), and don't want it cluttering her own plugins list.

So, decided to split the functions in two plugins:

  • One is a Must-Use used to hide the regular one.
  • The other will be activated/deactivated upon necessity and is the one from the above linked issue.

But now I run into another question: how to hide one plugin from the Must-Use listing?

added the mu-plugins tag and changed the order
Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459
Better title, I think "regular" may be more descriptive than "common".
Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264

How to use a Must-Use plugin to hide a commonregular one and to hide itself?

Tweeted twitter.com/#!/StackWordPress/status/208290522199097344
Must-Use spelling corrected in the title
Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264
Loading
Source Link
brasofilo
  • 22.1k
  • 8
  • 69
  • 264
Loading