Tag: plugins

  • Gutenberg Comments

    You might have noticed my comment section looks a little.. blocky.. After my WordCamp Europe talk in Berlin about the block list module, I decided to polish up my examples some more and deploy to production. And so I present, block comments, a prototype of block editor powered comments. https://github.com/tomjn/block-comments FAQ How Does it Work?…

  • The Correct Way to Build Plugins – The Bitter Truth

    What is the correct way to build a WordPress plugin, the official, recommended way that was always intended? The idealised standard? The Problem Plugins are not discrete modules in the WordPress world. Their isolation exists only on the filesystem, but once that code is loaded into memory it shares the same space as Core itself.…

  • WordPress and Composer TLDR

    There’s a few questions I’m commonly asked about using composer + WordPress. Here they are in a super short form FAQ: To install a composer project, run: composer install To update a composer project, run: composer update Install WordPress in a folder composer require johnpbloch/wordpress @stable or in your composer.json add: { “require” : { “johnpbloch/wordpress”: “@stable”…

  • Root Composition in WordPress Plugins

    When I build a WordPress plugin, I use several methods to structure things that help me greatly, all of which stem from root composition. I’m going to expand on what that is and how I use it. Every plugin has a root file that contains the plugin header comment, and gets loaded by WordPress. This…

  • ___ without a plugin

    How do I do ___ without a plugin? The answer is to remove the comment at the top of the plugin, and it’s no longer a plugin.

  • Admin Colour Schemes

    I’ve built two Admin Colour schemes for WordPress. Both are based initially off of the themergency theme generator, but with extensive changes. Notably the split colours of the admin menu and the admin bar. I’ve also accounted for form highlights, selection, checkboxes, and the progress bar on videos. The first is called Tangerine: The second…

  • ComposerPress

    Curious about Composer but already have a WordPress site? Not to worry, I have you covered. Presenting Composerpress: Composerpress is a plugin that analyses your WordPress install, and generates a composer.json file you can then use retro-actively. This file acts as an inventory of dependencies, plugins, etc that are needed to set up a site, and…

  • Bulk Entry Plugin Release

    I’ve released a new plugin for bulk creation of posts! Other plugins on the wordpress.org repository handled a strict subset of functionality such as posts and categories ( but not pages or tags), while others simply didn’t work. I set out to build an alternative that was extendable, reliable, and could handle custom post types…

  • Local Indicator v1.3

    After releasing v1.3, I thought I’d comment on the two significant changes I made. While there may be no visible change on the surface, new filters have been added to modify the colour and text of the indicator.

  • Realisations

    Some pretty simple things people don’t realise when dealing with WordPress Nobody Remembers the API A lot of people worry that they don’t know the API, that it will take them a long time to memorise everything. Nobody memorises the API. It changes too fast, it’s too big, and it’s a waste of time when…

  • Fixing JetPack Vanishing Menus & Order

    This is a fix for two issues with JetPack. First, it’s a much simpler method of stopping JetPack from sticking itself at the top of the menu under the Dashboard menu. Secondly, the code JetPack uses to rearrange the menu has bugs, meaning sometimes some menus vanish, e.g. Tools or Settings. Here’s a gist that…

  • Emailing on Image Attachment Uploads

    Sometimes it’s useful to know when an image or audio attachment is added. Here I’ll outline how to send an emailwhen it happens. How It Works We start by hooking into add_attachment, and grabbing the user IDs of all administrators: // send to admins of the current blog/site $args = array(); $args[0] = ‘user_email’; $wp_user_search…

  • New Plugin – Local Indicator

    I was having trouble telling apart development local and production servers, and wanted to prevent mistakes. So I built myself a plugin to help indicate what server I was on! Presenting local indicator, a simple tool to help tell apart local installs of WordPress and remote installs. It adds the IP and server name to…