-
-
Save searchwpgists/5f93168b6b7e443c1766353b8f23cc9d to your computer and use it in GitHub Desktop.
Send an email to the site adminstrator when the SearchWP Index is reset.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Send an email to the site adminstrator when the SearchWP Index is reset. | |
add_action( 'searchwp\index\rebuild', function() { | |
wp_mail( | |
get_option( 'admin_email' ), | |
'SearchWP Index Reset', | |
'The SearchWP Index has been reset.' | |
); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment