Skip to main content

Questions tagged [mu-plugins]

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.

0 votes
1 answer
220 views

I am trying to disable a chatbot plugin if the user is not logged in. In a MU Plugin I can use this filter - but the trouble is the is_user_logged_in() function does not yet exist, and neither is the ...
StripyTiger's user avatar
0 votes
1 answer
65 views

I wanted to use mu-plugins to load the plugin only on a page with a single blog post. Unfortunately, the is_singular('post') function is not working properly. So I tried using $post->post_type, but ...
patryk siuta's user avatar
2 votes
0 answers
180 views

My plugin is in: /root/.../mu-plugins/my-plugin In /root/.../mu-plugins/my-plugin/languages/ I have the following files: my-domain.pot my-domain-fr_CA.po my-domain-fr_CA.mo The strings I want to ...
Gazillion's user avatar
  • 317
0 votes
1 answer
109 views

I have a couple of plugins that need to install drop-in modules or mu-plugin modules when they're activated, and remove them when they're deactivated. This requires copying -- or maybe symlinking -- a ...
O. Jones's user avatar
  • 483
0 votes
1 answer
416 views

I'm not a dev. This is little too much for me. Can anybody just point me in the direction as to what the hell is going on?? Tried to recover a good working point. Tried disabling Plugins. Increased ...
David H's user avatar
1 vote
1 answer
1k views

I have my local WordPress setup I create folder named mu-plugins in wp-content/plugins/mu-plugins and in mu-plugins directory I create one file and write a simple code for test my mu-plugins not work ...
MR. shaikh__92's user avatar
1 vote
0 answers
29 views

I am writing a plugin that needs to disable another plugin on specific pages of the site. I know how to do this using the option_active_plugins filter, but that filter only works from an MU plugin. ...
Luke Seall's user avatar
0 votes
1 answer
355 views

I want to disable specific plugins on specific frontpages, but not "disable" them in the backend, i.e. really disable them in the DB. Just NOT load them, as if they weren't installed. Did ...
tim's user avatar
  • 164
0 votes
1 answer
815 views

This is what I've done in my custom functions mu-plugin: function jsdisabled() { print '<noscript> <div style="margin:auto; display:table; text-align:center"> <div style=&...
Brave Warrior's user avatar
0 votes
1 answer
1k views

I'm getting a Notice: Uninitialized string offset: 0 This is a mu-plugin that is supposed to show social sharing buttons and the only problem is happening with pinterest. Since it's not connected to ...
Brave Warrior's user avatar
0 votes
0 answers
78 views

A while back, I had someone here help me craft a custom mu-plugin (aka: "must use" plugin) that was designed to specially handle 404 server responses. Here is that thread for context, ...
Yvan Gagnon's user avatar
1 vote
1 answer
1k views

I don't understand wordpress, why is this wp_get_environment_type function undefined? Isn't this a "native" wordpress function? How can I make it defined? Here is my code inside of a MU-...
now_world's user avatar
  • 115
1 vote
2 answers
1k views

I'm going through a tutorial which says that creating new post_types is best handled by creating a new mu-plugin (as opposed to adding it to the functions.php). I understand why, but what I don't ...
exxodus7's user avatar
  • 111
0 votes
4 answers
3k views

So I've been messing with this for a while now and I don't understand how I'm unable to pull in my style file properly by registering and calling it at all. Here is my method: public static function ...
user avatar
0 votes
1 answer
134 views

So this is how I have my structure setup to attempt to create a mu-plugin for my page. Here is what I'm using: - Genesis Framework - Genesis FrameWork Child Theme Please let me know if the mu-...
user avatar

15 30 50 per page