wordpress I can no longer trust WordPress WordPress's latest move of hijacking the ACF plugin firmly solidified that it can't be trusted, regardless of the reasoning behind it.
wordpress Hosting: gotcha with multiple WP installs, one Redis If you're using one Redis instance to keep multiple WordPress sites' data, you need to make sure different sites don't bleed over to others. Read how and why.
timezone How should we store future time in non UTC in a database and still be performant? An example of a practical approach on how to store data in both local time, and a normalised time (UTC), and still be performant, but counter the timezone shift.
timezone Why storing future times in timestamps is not good A collection of articles and videos explaining timezone intricacies, including storing future events, and a list of libraries for PHP and JS.
wordpress Generating WordPress salts in Go One of the things I want to achieve in 2018 is to learn to use Go. > - learn golang - launch own saas - launch company saas - get to work on a tropical island in between surfing sessions - continually push industry for better inclusion - and better security - get quoted in a print
wordpress Let’s get salty! Because I’m on a roll today, so far I’ve broken 4 things today, including wp-cli, and Local by Flywheel. However I want to talk about what salts are, and why they are important, and how I found out about them. The below tweet, and its thread, has
wordpress It’s 2018, and it’s totally possible to contribute to WordPress without touching svn I work with WordPres a lot. It takes up a solid 12 hours of my day pretty much each day (minus weekends, because, you know, burnout). I’m also fairly vocal about not being the greatest fan of it. It’s aged, does things weirdly, but it works. Reliably. Shout
wordpress On fixing embedded content in WordPress How to use a custom wpcli command to fix broken links in all content across your entire WordPress site.
workflow My local development environment There are so many tools to do local development, no wonder folks are lost. I’ve mostly tried them all with the notable exception of Docker. Here’s what I ended up with on a mostly permanent basis: Server, database, php, wp-cli I develop on a Mac. This means
advanced Excuse me, do you have a moment to talk about our Lord and Saviour, WP_Rewrite? WP Rewrite is dark voodoo magic. I screwed up, so you don't have to!
wordpress Loading templates in WordPress and WooCommerce WooCommerce has a number of functions to load different templates. I describe what they do and how they're connected in this post.
wordpress WordCamp Europe 2017 - the first hour Okay, I’m going to be that person who highlights all my grievances. There will be tons of articles about how awesome everything was, so you can read those. That said here are the things that I found lacking. 1. The location. It’s in an industrial park, which isn’
advanced Why is the list of log handlers in WooCommerce an array? This is going to be as much a help for me, as, I hope, it will be for you. So WooCommerce 2.7 3.0.0 introduced a new way to handle logs [woocommerce_register_log_handlers], which is brilliant. There are two pieces to it: 1. the logger class
meetup Scaling WooCommerce talk at WooCommerce London on 23rd May 2016 Let me start by expressing my shock: * Slideshare is owned by LinkedIn * Slideshare has no idea what to do with keynote files Hence this blog post. You can grab my slides by clicking this very link [https://www.dropbox.com/s/0bmvxlige8pkhh9/woocommerce-london-scaling.key?dl=0] (it will
wordpress Why disabling emails is harder in WordPress than you thought? Aww yeah, my first clickbaity title! Anyways, let’s get down to business. Here’s the initial setup so you know why the following things will be annoying: You have an eCommerce website. That eCommerce website sends emails for new orders, renewal orders, etc. As it should. You need to
performance How I improved a query for our plugin by several orders of magnitude This is going to be super developer heavy. 99% of the article is going to be about SQL, so don’t really expect PHP or javascript things. Background We’ve been getting support tickets about the admin area being rather slow at times. We’ve recently released a new, 2.
wordpress Using phpcs with WordPress on OSX with MAMP Here’s the problem I needed to solve: > We work on WordPress projects. We want to adhere to a single source of truth when it comes to coding standards when coding themes and plugins. The obvious tool on the internet is to use phpcs, short for PHP Code Sniffer.
wordpress Transactional email providers I'm directly responsible [https://github.com/TryGhost/Ghost/commit/187c486b2fbae581b73d79d00eb798a0bfcfd841] for the Direct email sending in Ghost's core, which means that instead of the server trying to figure out whether there's sendmail installed and using that, it will just hurl the message at the
software svn and case-insensitive file systems tl;dr version svn rm ^/path/to/file -m "removing duplicate version" Explanation There's a plugin for WordPress that I help maintain. Along the way something decided that the readme.txt file should also be submitted as README.txt. Note the capitalisation. Because the systems I&
software Sane PCRE URL Regex for PHP So it turns out that there are some "oddities" in the spec and URLs that don't seem like URLs are actually URLs, and thus PHP's filter_var lets them pass. TLDs are not a requirement for example. This created some interesting conflicts though. I&
software Is Ghost hard to install? I guess in the developer world I could consider myself as a dual-wielding character. I do WordPress websites at my dayjob to the point where I'm uncovering bugs in core (not to mention some of the big plugins we're using), and I'm also
wordpress What happens on wp_insert_post()? This question came up in the Advanced WordPress Facebook group in the form of whether we should be using direct database inserts when converting non-WP data to WP data, or use the APIs. On one hand, using the WP API ensures that data will be sanitised and checked throughout