I've been looking for exactly this thing and it works perfectly!! Love it!!
Only one thing...
When having it installed it does something to the rest of the function.php file. I can't log in, comment, update the site etc. The script works brilliantly but not the rest of the site.
Any idea what the problem might be?
BTW, this is what comes up:
Cannot modify header information - headers already sent by (output started at /home/content/h/a/m/hampus/html/test/wp-content/themes/test/functions.php:15) in /home/content/h/a/m/hampus/html/test/wp-includes/classes.php on line 1586