Last active
April 3, 2024 14:12
-
-
Save dparker1005/58fc23d8e1ca85d2201c72e2cfc0e711 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
/** | |
* Trigger admin activity email. | |
* | |
* To send a test email, go to yoursite.com/?test_admin_activity_email=1 | |
*/ | |
function pmpro_test_activity_email() { | |
if ( ! empty( $_REQUEST['test_admin_activity_email'] ) ) { | |
$email = new PMPro_Admin_Activity_Email; | |
$email->sendAdminActivity(); | |
} | |
} | |
add_action('init', 'pmpro_test_activity_email'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment