Blog

  • Added a plugin to the WordPress directory? Here’s what to do next

    Added a plugin to the WordPress directory? Here’s what to do next

    Once you’ve had your plugin accepted into the WordPress.org directory, there are a few steps that I’d highly recommend any developer doing before moving on.

    (more…)
  • The definitive guide to the WordPress.org plugin assets folder

    The definitive guide to the WordPress.org plugin assets folder

    If you’ve ever added a plugin to the WordPress.org directory, you’ll find there’s a folder named assets waiting for you in SVN. In this article, I’m going to explore what you can add to this, and the various limitations and formats available to you.

    (more…)
  • Restoring the Side Panel button in Google Chrome

    Restoring the Side Panel button in Google Chrome

    A recent update to Google Chrome has got rid of the side panel button and added a new “pinning” feature instead.

    The side panel button opened up the bookmarks sidebar and, from there, you could switch it to one of the other sidebars. In particular, I use the Reading List feature, so this was how I accessed it.

    The idea now is that you open whichever sidebar you want and then you can pin it into place – multiple ones if you wish. Google have said, “You can open most side panel features through the Chrome menu”. Which is true. But the reading list is a number of clicks deep, and not obvious as to where it is (Chrome Menu -> Bookmarks and lists -> Reading List -> Show Reading List). I kinda don’t understand why they got rid of the side panel button, but also add in the pinning feature.

    (more…)
  • extract() usage is highly discouraged

    extract() usage is highly discouraged

    In 2012, the much loved and much missed WordPress developer Alex Mills raised a WordPress Trac ticket

    extract() is a terrible function that makes code harder to debug and harder to understand. We should discourage it’s use and remove all of our uses of it.

    As a result, use of the PHP functions was removed from WordPress and was added to the coding standards (which, in turn, made it into the WordPress sniffs for PHPCS).

    But why, and what should we do instead?

    (more…)
  • Create a live preview of your WordPress plugin using Playground

    Create a live preview of your WordPress plugin using Playground

    WordPress Playground, if you’ve not tried it already, is a browser based instance of WordPress, operated by WordPress.org. Essentially, you can create a temporary version of WordPress for use in trying things out.

    And developer, with plugins in the official directory, can now add a button to their plugin page, with a direct link to Playground, allowing an instance installation and demonstration of your plugin.

    (more…)