Skip to content

Instantly share code, notes, and snippets.

@pippinsplugins
Created August 27, 2013 18:29
Show Gist options
  • Save pippinsplugins/6357212 to your computer and use it in GitHub Desktop.
Save pippinsplugins/6357212 to your computer and use it in GitHub Desktop.
Send the "active subscription welcome email when manually changing a user to active in RCP
<?php
function pw_rcp_email_status( $new_status, $user_id ) {
if( 'active' != $new_status )
return;
rcp_email_subscription_status( $user_id, 'active' );
}
add_action( 'rcp_set_status', 'pw_rcp_email_status', 10, 2 );
@carlitoescobar
Copy link

Thanks this is very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment