Role Change - Kvcodes
X

Congrats, You are Subscribed to Receive Updates.

WordPress Send email notification when user role is changed

WordPress Send email notification when user role is changed
Hi, you are here to notify your users automatically, when  you change their user role(here i considered you as the site owner or the admin of your WordPress CMS).  So add the following function on your, WordPress, theme’s functions.php or your plugin’s main file. It will hook the function automatically. function kv_user_role_change_mail( $user_id, $new_role ) { $site_url = get_bloginfo('wpurl'); $user_info = get_userdata( $user_id ); $to ...

Menu

Sidebar

Subscribe E-mail Updates

Congrats, You are Subscribed to Receive Updates.

Advertisement

Category Posts