Category: Uncategorized

  • Setting, checking and deleting cookies

    Working specifically with WordPress, you might find yourself needing to set, check or delete cookies with JavaScript or PHP, or both (setting with JavaScript and checking or deleting with PHP for example). Here’s a quick little guide for both languages, with snippets I found useful recently. Deleting cookies PHP To clear both the $_COOKIE and…

  • Build a block: Adding configurable attributes (for a map block)

    Build a block: Adding configurable attributes (for a map block)

    Building a WordPress block plugin: Adding attributes to a Mapbox map

  • Build a block: Add a Mapbox map

    Build a block: Add a Mapbox map

    Building a WordPress block plugin: Adding a Mapbox map

  • Git: Creating a Bash script to rename multiple default branches

    In June 2020, GitHub announced they were working on plans to change the default branch name from ‘master’ to ‘main’. The reasoning was to remove any terminology that is linked in any way to the master/slave metaphor. GitHub made the change that year, and since then other organizations and individuals have been following suit. To…

  • The Developer Apprenticeship

    Just this January I started a year-long Developer Apprenticeship at Automattic. The Developer Apprenticeship is an opportunity to move toward becoming a developer full-time. I’m spending this year with the Jetpack crew. Everyones path to get to the apprenticeship will be different – for me the current journey began just over a year ago when…