You are viewing an old revision of this post, from September 2, 2015 @ 14:25:47. See below for differences between this version and the current revision.

WordPress 404 email alerts

As seen on WP Mix: Here is a customized plug-n-play PHP script for reporting 404 errors via email. No editing required, just clean email alerts for each 404 error. To implement, simply include this script at the top of your theme’s 404.php file: No editing required, just include and done. To disable the email reporting, either remove the script or comment-out the mail() function, like so: Note that any of the variables (e.g., $time$request, et al) are available for use elsewhere on the page. For example, you could display the information to the visitor to help deliver a useful 404 page. Here is a screenshot showing how the email alerts will look in your inbox. Update! Thanks to Drew Jaynes for sharing his OOP-enhanced version of the 404-email script. Muy bueno!!


Revision Differences

There are no differences between the September 2, 2015 @ 14:25:47 revision and the current revision. (Maybe only post meta information was changed.)


No comments yet.

Leave a Reply