Use WordPress Must-Use (MU) Plugins for Quick Code Snippets

Many guides, tutorials, forum posts, or other resources that have any code snippet say something like “Add it to your theme’s functions.php”. Some may mention that you can create custom plugin just for this. But I didn’t see another, better way that you should use: Must-Use (MU) plugins. Must-Use plugins are a little different than… Read more Use WordPress Must-Use (MU) Plugins for Quick Code Snippets

Make WordPress PHP Class Instances Available to Developers

Removing hook that uses function or static method as a callback is simple with remove_filter() or remove_action() functions because you know exactly what callback was attached to some hook. It gets a little tricky when your callback is an object and that object is not made available so you can’t unhook it. Consider following, simple… Read more Make WordPress PHP Class Instances Available to Developers