Restrict Email Domains – Limit to only one signup form?

  • Participant
    Level: Initiated
    Posts: 1
    David Addison on #32779

    Is there a way to limit the blocking of domain on all register except one form?

    Right now it’s seeming to block it on everything. Any tweak or thoughts how I could bypass it for a single registration form?

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2541
    Ravi on #32781

    Hello David,

    Thank you for posting. Please let me know from which registration form you want to bypass this restriction. Also, Is a normal WordPress registration or coming from any specific plugin like BuddyPress, WooCommerce etc.


  • Participant
    Level: Initiated
    Posts: 1
    David Addison on #32791

    I had a Ultimate Member as the registration form.

    However it would solve the problem if I could set it up to just follow the domain blocking rules on only ultimate member.

    And keep it normal on woocommerce, and BuddyPress.

    Is that possible?

    Thanks for your help!

  • Keymaster
    (BuddyDev Team)
    Posts: 22513
    Brajesh Singh on #32835

    Hi David,
    Thank you for the reply.

    Please upgrade to 1.1.3 and put this code in your theme’s functions.php

    // Disable WP restrict email domains for all plugins except ultimate member.
    add_filter( 'wp_restrict_email_domains_integration_enabled', function ( $enabled, $plugin_id ) {
    	if ( 'um' !== $plugin_id ) {
    		$enabled = false;
    	return $enabled;
    }, 10, 2 );

    That will make sure that it is only active for ultimate member.


You must be logged in to reply to this topic.

This topic is: not resolved