email address #1 is allowed during registration, while #2 is denied.
It wouldn’t be feasible in my use case to add all the full domain names to the whitelist in settings, since there’re hundreds of school domain names for *.edu.hk => (sch1.edu.hk, sch2.edu.hk, etc.) that I intended to serve.
I looked at the PHP of the plugin filter function for email domain restriction (profile-builder\admin\advanced-settings\includes\forms\restricted-email-domains.php), and found that it uses in_array() to test the email domain to the domain whitelist only, without considering sub-domains of those in the whitelist.
Perhaps I need to customize the wppb_toolbox_check_email_domain() filter function to achieve my purpose?
Any help will be welcome. Thanks.
This reply was modified 1 month, 2 weeks ago by antartoo.
This reply was modified 1 month, 2 weeks ago by antartoo.