Setting the wp_remote_get() User Agent
I was recently trying to make some API requests from within WordPress using `wp_remote_get()`, but the site I was asking for data from was rejecting requests from the default WordPress User Agent. I...
View ArticleSubmit a Form on Command + Enter from Textarea with jQuery
I’m a big fan of keyboard control in productivity applications. I love being able to type my changes/additions and submit them without needing to tab around too much, or gasp grab the mouse. I’m not...
View ArticleSane Laravel 5 Mail Example
For some reason, the example code in the Laravel docs for their Mail feature neglect to show how to pass defined variables into the closure. Here is something a little more useful. View the code on Gist.
View ArticleWe’ve Made Web Development Complicated
When I first made my transition from front-end development into back-end development in ~2002, I had two things to learn: a server-side language how to talk to a database (SQL) on top of my knowledge...
View ArticleDisable Submit Button After a Form is Submitted
Once a user has submitted a form, you generally don’t want them to submit it a second time.1 A nice way to handle this is to disable the submit button once the form has been submitted, while replacing...
View Article