Last active
March 18, 2020 13:37
-
-
Save jchristopher/62e1d9797b0a3655e93d7d6e5f5844fa to your computer and use it in GitHub Desktop.
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