Must Use Plugins are loaded without a manual activation. They are stored in wp-content/mu-plugins and don’t need a regular plugin header.

learn more… | top users | synonyms

0
votes
3answers
507 views

No first_name or user_firstname property in WP_User object

I'm writing a basic plugin. Here's my code: $new_user = get_userdata($user_id); $first_name1 = $new_user->user_firstname; $last_name1 = $new_user->user_lastname; echo "<" . $first_name1 ...
2
votes
0answers
96 views

Namespacing WordPress project according to FIG standards

I am trying to wrap my head around the namespaces, autoloaders and FIG standards and most importantly how to achieve their integration to WordPress as close as possible. Here is my file structure, ...
0
votes
1answer
13 views

Are mu-plugins plugins still deployed via wordpress.org/plugins?

I'm getting ready to publish my first plugin. I've decided to put it in mu-plugin, because if you removed it, it would break other code dependent on it. (It's a developer tool for logging variables to ...
4
votes
1answer
156 views

Must-use plugins autoloader: How to use get_plugins() correctly?

My autoloader class is responsible for loading must-use plugins that do not sit in the root of the mu-plugins folder. To locate them, I need to use the get_plugins() function. According to Codex, the ...
0
votes
2answers
43 views

Hide mu-plugins list

I'm using mu-plugins, http://codex.wordpress.org/Must_Use_Plugins. These plugins are showing in plugins.php, http://d.pr/i/JIvX. Is there any way to hide it? Thanks.
1
vote
2answers
445 views

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

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 ...
0
votes
1answer
405 views

Using WP_Query within an mu-plugin

I'm trying to create a list of parent IDs for a custom post type for use within a "must use" plugin I'm developing on a project. Here's the code I'm using to generate the query: $cpt_parents = new ...
0
votes
1answer
143 views

Define constant for one plugin in mu-plugin

I'm trying to define the constant ACF_Lite as true so that the interface of the Advanced Custom Fields plugin is hidden on all of my multisite subsites except the parent. For clarity and ...
-1
votes
3answers
159 views

How can woocommerce be used in mu-plugins folder?

I don't want clients to deactivate woocommerce plugin even by mistake. And I have recently come across a concept called must use plugins in wordpress. (http://codex.wordpress.org/Must_Use_Plugins) ...
1
vote
1answer
165 views

Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php?

Can the wp-plugins (Must Use Plugins) URL be targeted for use in functions.php? I have a mu-functions.php file in the mu-plugins folder. One function calls a javascript file (alerts.js) located in ...
7
votes
1answer
198 views

How to prevent redirect to 'About' after core upgrade?

In wp-admin/includes/update-core.php we find the following line: add_action( '_core_updated_successfully', '_redirect_to_about_wordpress' ); I want to remove this action, so I created a mu plugin ...
1
vote
1answer
153 views

How the mu-plugins Folder Works in a Multisite Installation?

I'm a little confused about when I should be placing plugin files into mu-plugins. I know it's Must-Use plugins and I know that they are automatically enabled. In the network setting, though, does ...
0
votes
1answer
477 views

Plugins in mu-plugins folder are not loaded

I'm trying to load plugins automatically by putting the plugins into mu-plugins folder. But if the plugin is put in a folder, it isn't loaded. I tried some popular plugins such as W3 Total Cache, ...