The easiest way to style your editor is by applying your theme’s stylesheet, making content look the same while editing as it does in your content.
Closures (also known as Anonymous Functions) can be called by WordPress Actions or Filters instead of specifying a named function and can lead to cleaner code and escape from callback hell.
If you’re still deploying and updating sites with FTP or by generally pushing files around, here’s an easier way—deploy with Git!
Making your WordPress site serve all content over SSL / HTTPS is surprisingly easy and can be done in a matter of minutes.
Sometimes you reeeeeally want your filter to run last and you can use this code to make sure it does!
Installing all locales available on your system is surprisingly easy and can be done in three commands.
Continue reading “Install all locales”
After much Googling and research, what follows is code that adds favicons to your site in all browsers that are young enough to not be allowed into bars.
Using a project’s readme.md to generate a GitHub page is surprisingly easy. Why write content twice?
Continue reading “Generate GitHub Pages from your project’s readme.md”
PHP currently has more than 5,000 functions; like “Learn a Word a Day”, PHP FOTD selects a new PHP function every day so 5,000 isn’t so intimidating!
Ever wished you could do something like
[shortcode epic] and pass the flag as a parameter? Turns out it’s pretty easy!
Continue reading “Unnamed WordPress shortcode attributes”