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

How to Serve WordPress HTML Pages as Static Files via CloudFlare CDN

There are many WordPress plugins that cache full HTML pages. Some are using disk, some memory, but what is common for them is that they are using your server resources. CloudFlare offers many services that enhance sites and among them is CDN (Content Delivery Network) that caches and serves content from its servers. By default,… Read more How to Serve WordPress HTML Pages as Static Files via CloudFlare CDN