Background I recently commented on Tom McFarlin’s blog post entitled “Updating a WordPress Post in the Save Post Action” and suggested the use of a simple static variable rather than go through the hassle of removing and re-adding the save post hook. Tom’s response was he hadn’t thought of it but that he avoids recursion… Continue reading
Category Archives: Opinion
Initializing Singleton Classes used in WordPress Plugins
After one of our earlier posts Eric Mann whose opinion we highly respect initiated a conversation with me over Twitter’s DM where he expressed a dislike for the HardcoreWP approach and stated a preference for using ::get_instance() instead: While this approach is perfectly workable and truth be told it’s mostly just personal preference we still… Continue reading