I had a quandry today. I needed some functionality not provided in a plugin. The question: Do I edit the “Now Reading Reloaded” WordPress plugin, or do I build a plugin that extends it? I chose the latter, and this is why:
Normally when i want to customize an existing plugin, I will edit the plugin file(s) and that will be that. But tonight I decided, in the name of good old-fashioned curiosity, that I would extend the “Now Reading Reloaded” plugin with one of my own.
By default, the aforementioned plugin displays unread, currently reading, and finished books in the sidebar. I only wanted to display the unread books. So, all my new plugin does is create a hard-coded display of unread books. It uses hooks provided by the plugin author to do so. My plugin is not flexible at all, but it gets the job done nicely. Plus, I created my first WordPress widget – YAHOOO!!!
More posts from themightymo.com
How to Connect a GoDaddy Site to ManageWP
GoDaddy owns ManageWP, and, strangely, they make it very difficult to add GoDaddy-managed WordPress sites to their ManageWP service. Thankfully, there’s a quick workaround: Visit https://yoursite.com/wp-admin/plugins.php?showWorker=1 — This will make the ManageWP “Worker” plugin visible. Copy the connection info from the ManageWP Worker plugin. Add the site per-normal on ManageWP. That’s it! I hope this…
How to check if your current page is the wp-login.php page
I realized this morning that my TMM Maintenance Mode WordPress plugin had a bug that was causing the wp-login.php page to be inaccessible. The solution was to write a simple function that checks whether or not we’re currently on a login page, and then add a call to that function in my code. Here’s the…
WooCommerce Product Image Gallery Not Loading with WP Rocket Active
Today I updated a WooCommerce site, and everything worked fine, except for the images on product pages – they were not displaying at all. After a lot of trial & error, I realized that WP Rocket was to blame. I’m not sure exactly what the issue was (though my hunch is that it had to…