Posted on June 16, 2017Categories Hacking, WordPressTags , , , , ,   Leave a comment on Adding Columns To WordPress Screen Options

Adding Columns To WordPress Screen Options

Adding the Screen Options drop down to a custom WordPress admin page takes some trickery which was described in the prior Screen Options blog post.  Using the “magic sauce” of the per_page option and adding it to the class that renders your admin page and handles page interaction is an easy way to get that started.    Assuming you already have the Screen Options rendering with something on there, probably Pagination settings, you can now add a column selector.   … Continue reading “Adding Columns To WordPress Screen Options”

Posted on March 24, 2017Categories Plugin Development, WordPressTags , , ,   Leave a comment on WordPress Plugin Overhead

WordPress Plugin Overhead

I recently wrote an article on why you should bury the bulk of your plugin PHP code at least TWO levels deep from the top-level directory.  The short version: WordPress builds a list of every single PHP file in the plugin directory and first level subdirectories then opens every single one and reads the first 8K scanning for the /* Name: string to build a list of plugins and their meta.  This is triggered by the get_plugins() function in WordPress … Continue reading “WordPress Plugin Overhead”

Posted on March 3, 2017Categories Plugin Development, Technology, WordPressTags , , , 2 Comments on Why Your WordPress Plugin Should Have Almost Nothing In The Main Folder

Why Your WordPress Plugin Should Have Almost Nothing In The Main Folder

As we continue to roll out our Store Locator Plus SaaS service built on top of WordPress as our application foundation we continually refine our plugin, theme, and API architecture.    One of the issues I noticed while testing performance and stability is how WordPress Core handles plugins.    Though WordPress caches plugin file headers there are a lot of cases where it re-reads the plugin directories. What do I mean by “read the plugin directories”? WordPress has a function named get_plugin_data().   … Continue reading “Why Your WordPress Plugin Should Have Almost Nothing In The Main Folder”

Posted on July 15, 2016Categories Plugin Development, Technology, WordPressTags , , , , ,   Leave a comment on A WordPress Plugin Coding Adventure – A Love Hate Relationship

A WordPress Plugin Coding Adventure – A Love Hate Relationship

Over the past 48 hours I spent time between numerous meetings writing another WordPress Plugin, a WooCommerce Report Modifier that we need for our Store Locator Plus store.   I’ve not written a “new from scratch” plugin that was not related to the Store Locator Plus system for quite some time.    It gave me a new perspective on the entire WordPress plugin coding adventure. Open Source Is Great One of the biggest things I re-affirmed about coding plugins for WordPress is … Continue reading “A WordPress Plugin Coding Adventure – A Love Hate Relationship”