Force Shortcode Attributes

It’s been a while since I last posted, but I found a neat filter that’s apparently been around for some time now (since WP 3.6)

shortcode_atts_{$shortcode}

This allows you to override shortcode attributes, I’ll try to post examples shortly!…

Modern WordPress Development – Composer

Composer is a PHP dependency manager that’s been in the wild for roughly 2 years. In short it helps mitigate the extremely antiquated ways PHP developers had been managing third party libraries. Composer is nothing new to PHP, as I …

Ignoring Files Locally in Git

I wanted to keep some WordPress plugins on my local installation of WordPress that did not end up on my live server: mostly debugging tools (for example: 1, 2 and 3). I could have essentially added them to …

Permenant Alias in OS X Terminal

I use MAMP on my local as part of my development environment. When dropping to terminal to perform an action (e.g. git commit/checkout/etc.) I was getting tired of manually changing my directory to the default MAMP root (cd /Applications/MAMP/htdocs/wp-content) so …

Casting a string to boolean in PHP

So it’s been some time, but I finally came across an issue that I have faced, which hopefully means you have too. Either way this will serve as a great reference for myself, since I come across this on a …