Must Use Plugins (WordPress)

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen

MU-plugins kun je niet in submappen stoppen. Ze moeten gelijk in wp-content/mu-plugins staan, maar je kunt dit met bv. een link omzeilen [1]

Je kunt middels wp plugin status verifiëren of MU-plugins zijn geladen. Voorbeeld:

> wp plugin status

8 installed plugins:
  A duplicate-post    3.2.2
  A mikado-core       1.0.2
 UA updraftplus       1.14.7
  A wordfence         7.1.6
  A js_composer       5.4.7
  A wpforms-lite      1.4.6
  A wp-mail-smtp      1.2.5
  M automatic-updates 20180526

Legend: A = Active, M = Must Use, U = Update Available

Verwijdering

[2]:

Must-use plugins do not show in the default list of plugins on the Plugins page of wp-admin – although they do appear in a special Must-Use section – and cannot be disabled except by removing the plugin file from the must-use directory, which is found in wp-content/mu-plugins by default.

Bronnen