NooTheme Premium WordPress Theme › Forums › JobMonster › Employer registration
- This topic has 14 replies, 2 voices, and was last updated 3 years, 7 months ago by dangdv.
-
AuthorPosts
-
3 years, 9 months ago #1205330
i need only guy with official email id could register s employer. No employer could register on my portal with ordinary gmail or outlook. How it can be done?
3 years, 9 months ago #1205368I don't understand your problem, mean, you do not allow Employer register with email domain gmail and outlook ? If right, please install and switch your site to use Jobmonster child theme, then add custom code in file functions.php of child theme.
add_filter('registration_errors', function($errors, $sanitized_user_login, $user_email){ list( $local, $domain ) = explode( '@', $user_email, 2 ); $do_not_allow_domains = array( 'gmail.com', 'outlook.com' ); if(in_array($domain, $do_not_allow_domains) ){ $errors->add('do_not_allow_email_domain', __('Do not allow email domain', 'noo')); } return $errors; },10,3);
Best regards.
3 years, 9 months ago #1205371This reply has been marked as private.3 years, 9 months ago #1205401Dear, please kindly send for me admin account your site and your problem URL via private reply, i will check details to help you.
Also, all settings on your site not lose when you install and switch to use Jobmonster Child theme.
Best regards.
3 years, 9 months ago #1205443This reply has been marked as private.3 years, 9 months ago #1205483You don't follow my reply and add custom code ? Please check and add custom code then check your site again.
Best regards.
3 years, 9 months ago #1205516This reply has been marked as private.3 years, 9 months ago #1205521i will try it later after completing my website. I will reach you if need to apply this feature.
3 years, 9 months ago #1205589Dear, if you only validate Employer email. please install and switch your site to use Jobmonster child theme, then add custom code in file functions.php of Jobmonster child theme.
add_filter('noo_registration_errors', function($errors, $params){ if($params['role'] === Noo_Member::CANDIDATE_ROLE){ return $errors; } list( $local, $domain ) = explode( '@', $user_email, 2 ); $do_not_allow_domains = array( 'gmail.com', 'outlook.com' ); if(in_array($domain, $do_not_allow_domains) ){ $errors->add('do_not_allow_email_domain', __('Only Corporate Email Id', 'noo')); } return $errors; },10,2);
Best regards.
3 years, 9 months ago #1205611what is difference between noo jobmonster and child theme?
3 years, 9 months ago #1205655Dear, You can read more about child theme in HERE
Best regards.
3 years, 8 months ago #1207070Please share me screenshot or location where i will have to paste this to validate employer email.
3 years, 8 months ago #1207108Yes, Please install and switch your site to use Jobmonster child theme, then add custom code in file functions.php of Jobmonster child theme (see attachment)
Attachments:
You must be logged in to view attached files.3 years, 7 months ago #1207652I have pasted this but still its not working. User still able to register with their gmail account. Please help.
3 years, 7 months ago #1207670Dear, I have check and edit custom code on your site, now please check Employer Register account with gmail again.
Best regards.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.