Untitled

 avatar
unknown
plain_text
12 days ago
361 B
4
Indexable
add_action('b2bking_reject_user_admin_before_delete', function($user_id){
    $user = new WP_User($user_id);
    $user_email = $user->user_email;
    $message = 'Thank you for taking the time to register, however, we were unable to approve your application...';
    do_action( 'b2bking_new_message', $user_email, $message, get_current_user_id(), 0 );
}, 10, 1);
Leave a Comment