-
Get Query Parameter PHP
It’s pretty easy to simply grab a URL Query Parameter, but here’s how to do it safely.
-
Change a Key Name PHP
-
Complex Arrays PHP
Arrays can get complicated pretty quickly. Here’s a quick lowdown on how they are made, and how they are accessed.
-
Pretty Print Array in PHP
Just a quick snippet for printing out an array in a nice way.
-
Ternary Operator
Inline if this then that else this other thing. Handy when you need to do this sort of thing in a template literal.
-
Find that element that goes off page
If an element on the page is wider than the document, it’ll get logged to the console.
-
Javascript OOP
Javascript Object Oriented Programming basic setup. And I’m using jQuery because, why not? It’s already in WordPress, anyway.
-
Register Rest Field
This will put anything you want into the wp api call for a post, page, or any custom post type.
-
WP Custom Route API
You can do a lot with the WordPress API, but it gets really good when you can make your own WP API endpoints.
-
Hipster Ipsum
When it comes to testing and Ipsum, Hipsters are the best. hipsum.co If you need an image or two, picsum.photos has some great options built right in.