PSA: Do Not Use camelCase for WordPress Shortcode Attribute Names

Use lower or snake case instead of camel case for WordPress shortcode attribute names.

I just wasted nearly an hour troubleshooting a shortcode for a project because I did not know that WordPress shortcode attributes are passed through PHP’s strtolower() function (view source). I rarely use camelCase in PHP, and am also not a huge fan of shortcodes, so have easily managed to get through 15 years of developing …

Read more »PSA: Do Not Use camelCase for WordPress Shortcode Attribute Names