Posted on December 10, 2018Categories WordPressTags , , , , 1 Comment on Should I Update To WordPress 5

Should I Update To WordPress 5

Should you update to WordPress 5? This is a question that has been asked thousands of times in the past week.    I have been asked at least a dozen times and every time my answer is the same.   NO. Unless WordPress automatically updates your site and it is more difficult to restore the prior 4.X release , then WAIT. While the WordPress 5.0 editor, the most obvious updated to WordPress in the 5 release, is definitely a step in … Continue reading “Should I Update To WordPress 5”

Posted on August 23, 2018Categories JavaScript, Plugin Development, Programming, Programming Languages, Technology, WordPressTags , , , , , ,   Leave a comment on Vue – JavaScript Library Outside Google/Facebook Control

Vue – JavaScript Library Outside Google/Facebook Control

Vue is running on several projects to create a better admin user experience. Vuetify is layered on top and baked into WordPress themes and plugins. You will need to add a little custom CSS to stop WordPress from stomping on the UX. You’ll also add a small localize script to seed Vue with relevant data from WordPress. A little REST applet to serve Vue requests and you get a fast good looking responsive app with far less effort than custom … Continue reading “Vue – JavaScript Library Outside Google/Facebook Control”

Posted on April 8, 2018Categories Plugin Development, Quality Assurance, WordPressTags , , , , , 1 Comment on Cypress.IO Data List Processing — Testing A WordPress Plugin

Cypress.IO Data List Processing — Testing A WordPress Plugin

Testing Store Locator Plus with lots of locations is a chore.  Thankfully Cypress.IO data list processing makes this a lot easier. It turns out that the old-school Selenium IDE scripts that we’ve been using to test Store Locator Plus for years will no longer work.   We already knew Firefox versions beyond 54 broke things — but we kept an old install on hand so while we port 500+ test scripts to a new system.   What finally broke the old-school Firefox … Continue reading “Cypress.IO Data List Processing — Testing A WordPress Plugin”

Posted on March 23, 2018Categories WordPressTags , , ,   Leave a comment on Why Jetpack Autoupdate Is A Bad Idea

Why Jetpack Autoupdate Is A Bad Idea

I’ve written articles on Jetpack Autoupdate before — you’ll find some of them in the Jetpack blog.    For many neglected sites autoupdate of plugins is a good idea.  Plugins often have security patches that you should not ignore.  Sometimes they have compatibility updates to allow them to work with the latest update to WordPress. However autoupdate of ANY software, whether on your phone, desktop computer, or mobile device is only as good as the software doing the update.    … Continue reading “Why Jetpack Autoupdate Is A Bad Idea”

Posted on January 10, 2018Categories Plugin Development, WordPressTags , , , , , 1 Comment on WordPress Plugin Loader Tricks

WordPress Plugin Loader Tricks

An unusually short article, for me, on basic WordPress plugin loader tricks. Basic setup Name the “loader” php file the same as the plugin directory. Text Domain must match the directory name. Avoid leading * on header lines = less bytes to process by the header processor in WordPress. Ensure it runs from within WordPress Use function_exists( ‘add_action’ ) instead of defined( ‘ABSPATH’).  It is more likely to be specific to WordPress.   It is also a better test as … Continue reading “WordPress Plugin Loader Tricks”

Posted on December 29, 2017Categories Plugin Development, Technology, WordPressTags , , , , , 2 Comments on WordPress wp_update_plugins Deep Dive

WordPress wp_update_plugins Deep Dive

When using a private update service for premium WordPress plugins, some version tests get left behind leaving users with a half-updated plugin stack.   When operating a freemium model, like Store Locator Plus, where the free base plugin may be updated and impact how the premium add ons work having all update notifications arrive at once is critical.     There are times when version 3 of the main plugin will ONLY work with version 2 of a premium add … Continue reading “WordPress wp_update_plugins Deep Dive”

Posted on December 15, 2017Categories PHP, Programming, Programming Languages, Technology, WordPressTags , , ,   Leave a comment on Should The WordPress PHP Version Be Updated?

Should The WordPress PHP Version Be Updated?

WordPress LOVES backwards compatibility as can be witnessed by the minimum-allowed WordPress PHP version remaining at 5.2.4 a decade after its end-of-life date.  It  may be  one of the reasons they have continued to garner market share.  Don’t require people to do anything to improve their site and they’ll wallow in complacency.  It makes sense.  Inertia is a big thing to overcome.  If you are a business focused on writing content, selling widgets, or doing just about anything else other than … Continue reading “Should The WordPress PHP Version Be Updated?”

Posted on December 9, 2017Categories Hacking, WordPressTags , , , , , , , 1 Comment on Uncovering A WordPress Walker Class Inconsistency

Uncovering A WordPress Walker Class Inconsistency

Took an hour tonight to figure out why the new Store Locator Plus Premier Button Bar is not working properly.   The odd thing is this WAS working properly two weeks ago but both our own code for the base plugin and Premier add on changed as well as a new WordPress release.    Maybe something changed in WP Core to trigger the problem in our add on or maybe something we fixed elsewhere in the code exposed this weak … Continue reading “Uncovering A WordPress Walker Class Inconsistency”

Posted on October 11, 2017Categories Plugin Development, WordPressTags , , , , , , 3 Comments on WordPress Hooks and Filters Order Of Precedence

WordPress Hooks and Filters Order Of Precedence

When building plugins and themes I often need to reference the WordPress order of precedence of hooks.   This helps ensure various components are loaded only when needed and at the right time.   The base list I reference is the old Codex Plugin API/Action Reference page.   Its sister resource, the Codex Plugin API/Filter Reference is also useful. The only problem I have with those resources is when I need to determine what will fire on the front-end, backend … Continue reading “WordPress Hooks and Filters Order Of Precedence”

Posted on June 15, 2017Categories Plugin Development, Uncategorized, WordPressTags , , , , 3 Comments on Adding Screen Options To WordPress Admin Pages

Adding Screen Options To WordPress Admin Pages

Many of the built-in WordPress admin pages have a Screen Options drop-down tab on the top right of the page.   This is used to set how many items are shown in the default WordPress tables, such as the list of pages or posts.   Some of the WordPress admin interfaces also allow you to set which columns to show or hide on the page. As a plugin or theme author it provides a consistent interface for your users if … Continue reading “Adding Screen Options To WordPress Admin Pages”