Created
February 5, 2015 14:32
-
-
Save JudeRosario/629ca3cb7c01c960124f to your computer and use it in GitHub Desktop.
Membership Communications Test
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
// Use this Function to test if Membership sends out emails | |
add_filter( 'the_content' , 'wp_mail_test' ); | |
function wp_mail_test( $content ){ | |
// Put the ID of the message you want to send here | |
$c = new M_Communication(1) ; | |
// Put the User ID here, to whom the mail must be sent | |
$c->send_message(1,false,false); | |
return $content; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment