Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor genetech

    (@genetech)

    Hi,

    We will try to add this feature natively on our nest releases, here’s a little workaround to do that.

    I will come up with the patch very shortly.

    Thanks

    Plugin Contributor genetech

    (@genetech)

    Hi Pat,

    Here’s the patch:

    Add the following code snippet into the Pie-register.php inside the RegErrors function where it reads:
    if( !is_array( $piereg_custom ) ) $piereg_custom = array();
    At line #: 1182

    Add the following anippet after the above line.

    if(in_array($_POST['user_email'],array('[email protected]','[email protected]','[email protected]'))){
        $errors->add('Invalid Email', __('<strong>ERROR</strong>: This email is not allowed', 'piereg'));
        $CeRror=1;
    }

    Hope it helps.

    Please note: I have placed 3 emails (change them with the ones you want to block), you can increase or decrease as per your need.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Block a specific email from registering’ is closed to new replies.