Public Ticket #3499767

Denied users

Closed
Comments
17 Tickets 6
Romina started the conversation 3 years ago on October 16, 2023 at 10:14pm

I want to know if the clients that are not approved on the site, (they dont have the requirements or whatever reason), receive an email? If so, were I can edit that template. 

Thanks!

2,762
KingsPlugins replied 3 years ago on October 17, 2023 at 8:47am

Hi Romina,

By default, there is no email for that. 

However, you can add one using this PHP code snippet:

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, but you are not eligible for our B2B program...';
    do_action( 'b2bking_new_message', $user_email, $message, get_current_user_id(), 0 );
}, 10, 1);

You can set the $message to anything you'd like in the above snippet.


Kind regards,

Stefan

Sign In