WP Development

How to Add a WordPress Plugin Action Link

I always prefer it when plugins make it as easy as possible to find their configuration page. When I install a new plugin the last thing I want to do is hunt around for some hidden menu item, I want to play around with my new toy! And what better place to link to a plugin’s configuration than right from the admin Plugins page where the plugin is activated, deactivated or (the horror!) deleted. These…

Read More

WP Development

Debugging WordPress

The following are some techniques I use nearly every day for debugging WordPress and WooCommerce, and can be used for plugin or theme development equally. Echoing or printing to the screen will only get you so far when debugging, especially in a complex framework like WordPress; to really understand the code flow, and to trace and fix issues, you need to be able to log messages to a file. For this WordPress makes use of…

Read More

WP Development

WordPress Settings API Hidden Field

This short article covers one way of creating hidden fields with the WordPress Settings API. This is useful for more than just creating hidden input fields; for instance I used it when I wanted to render a number of checkboxes in a single field, yet still have the checkbox options managed by the Settings API. The WordPress Settings API The WordPress Settings API is a great, if poorly documented addition to WordPress. The two best…

Read More

WP Development

Add a WordPress Custom Bulk Action

Good news! There are now core APIs to do this as of WordPress 4.7. You can read more here. Like me you probably woke up this morning assuming that adding a new bulk action to WordPress would be as easy tracking down the correct filter or implementing the right action hook. If so, then you might have had a rude awakening when you attempted to make use of the promising-looking filter named bulk-actions-screenid and failed….

Read More

WP Development

Magento/WordPress Development and Deployment

First off, this post owes a debt of gratitude to Ashley Schroder and Colin Mollenhour, without whom it would not exist. The goal of this article is to describe a development environment configuration that’s ideally suited for developing and deploying version controlled plugin/extension code, that is plugged in to a much larger system codebase. This is precisely the situation when developing extensions/override code for Magento, or plugins for WordPress and WooCommerce, and is a fairly…

Read More

WP Development

WordPress Comments Feed 404 Fixed

I logged in to Google Webmaster Tools today and was greeted with a new crawl error, specifically a 404 Not Found for the Comments Feed url https://www.skyverge.com/comments/feed/. I requested the page and sure enough, it was indeed a 404. A quick search turned up a number of threads and discussions regarding this issue, which seems to stem from having a new site without a single comment yet. How embarrassing. Now, let me stop you right…

Read More