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.
7
votes
1answer
130 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
78 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 ...
1
vote
1answer
264 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 ...
1
vote
1answer
83 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
2answers
209 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 ...
0
votes
1answer
179 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, ...
0
votes
1answer
20 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 ...
0
votes
1answer
148 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 ...
-1
votes
3answers
84 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)
...
