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

Detect keydown, mousedown and Other TinyMCE Events in WordPress

WordPress uses TinyMCE for its visual editor, making in hard to use regular JavaScript for custom situations. Luckily, TinyMCE provides some callbacks that we can use. In this example, I’ll show how you can do something when content of visual editor in WordPress has been accessed or changed by using TinyMCE’s handle_event_callback callback. To register… Read more Detect keydown, mousedown and Other TinyMCE Events in WordPress