WordPress 404 email allert



I just found this little code snippet on Github “DrewAPicture”. Thought i share it with you all. It’s very good to keep track on how many 404s you get on your site, so that you can fix it. (Don’t recommend using it is you recently moved your site as you then get spamed by e-mail from bots and people that try to access old links on the internet/google 😉

Simple install, Add the following code (as is, no need to change it) to your functions.php in your theme folder.

Now add the following code in the top to your 404.php in your theme folder. (if you don’t have one, just create one)

Go try it out! 😉

One response to “WordPress 404 email allert”

  1. […] WordPress 404 email allert | Frederik Leksell. […]

Leave a Reply

Your email address will not be published. Required fields are marked *