Set the default user role to “Editor” when new users register.
add_filter('pre_option_default_role', 'codebykp_set_default_user_role');
function codebykp_set_default_user_role() {
return 'editor';
}
Set the default user role to “Editor” when new users register.
add_filter('pre_option_default_role', 'codebykp_set_default_user_role');
function codebykp_set_default_user_role() {
return 'editor';
}