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 Disable All Automatic Background WordPress Updates

Maintenance and security releases, or minor releases for WordPress should be safe, without breaking sites, plugins, or themes, but this year WordPress had some versions that break sites with automatic updates. Since plugins and themes can get same treatment too, some people don’t want this kind of updates, even if their imporve security for previous… Read more How to Disable All Automatic Background WordPress Updates

Get Post ID from Tumblr URL in PHP

This little code snippet can be used to get ID of a Tumblr post if you have URL of post, no matter if there is unique slug at the end (http://staff.tumblr.com/post/122809548365/apologies-for-the-disruption-some-of-you) or not (http://staff.tumblr.com/post/122809548365), or if it’s on custom domain (http://van-life.net/post/120576266146/thecindercone-a-video-i-made-with-some-help). Can be useful when you have to deal with Tumblr API. $full_url = 'http://staff.tumblr.com/post/122809548365/apologies-for-the-disruption-some-of-you';… Read more Get Post ID from Tumblr URL in PHP