How to bring back single-column dashboard in WordPress 3.8

Bringing back the single-column dashboard in WordPress 3.8 is pretty easy: just add this code to your theme’s functions.php file.

Thanks to Jeff Starr for the tip!  

How to set the default image size in WordPress galleries

Simply paste the following snippet into your functions.php file:

The desired size can be changed on line 5.

Thanks to emoticode for the cool tip!

WordPress tip: Bulk delete comments with a specific url

Just run the following query on your WordPress database to delete comments with nastyspamurl as url. Don’t forget to replace the table prefix wp_ if your database is using another prefix. And of course, create a backup of your database before running the query!

How to clean up wp_head() without a plugin

Paste the following lines of code into your functions.php file: