Viewing 6 replies - 1 through 6 (of 6 total)
  • @klenshop

    This document is outdated because Phone and Mobile numbers are being clickable in the latest versions of UM.

    Thread Starter klenshop

    (@klenshop)

    @missveronicatv thanks
    What bout Caps in email snippet, is that too removed?

    @klenshop

    Which email code snippet?

    Thread Starter klenshop

    (@klenshop)

    @missveronicatv this one

    function um_102621_blockedemails( $args ) {
    $emails = UM()->options()->get( 'blocked_emails' );
    if ( ! $emails ) {
    return;
    }

    $emails = array_map( 'rtrim', explode( "\n", $emails ) );

    if ( isset( $args['user_email'] ) && is_email( $args['user_email'] ) ) {

    $domain = explode( '@', $args['user_email'] );
    $check_domain = str_replace( $domain[0], '*', $args['user_email'] );

    if ( in_array( strtolower( $args['user_email'] ), $emails ) ) {
    exit( wp_redirect( esc_url( add_query_arg( 'err', 'blocked_email' ) ) ) );
    }

    if ( in_array( strtolower( $check_domain ), $emails ) ) {
    exit( wp_redirect( esc_url( add_query_arg( 'err', 'blocked_domain' ) ) ) );
    }

    }
    if ( isset( $args['username'] ) && is_email( $args['username'] ) ) {

    $domain = explode( '@', $args['username'] );
    $check_domain = str_replace( $domain[0], '*', $args['username'] );

    if ( in_array( strtolower( $args['username'] ), $emails ) ) {
    exit( wp_redirect( esc_url( add_query_arg( 'err', 'blocked_email' ) ) ) );
    }

    if ( in_array( strtolower( $check_domain ), $emails ) ) {
    exit( wp_redirect( esc_url( add_query_arg( 'err', 'blocked_domain' ) ) ) );
    }
    }
    }
    add_action( 'um_submit_form_errors_hook__blockedemails', 'um_102621_blockedemails', 10 );
    remove_action( 'um_submit_form_errors_hook__blockedemails', 'um_submit_form_errors_hook__blockedemails', 10 );

    @klenshop

    Yes, “Blacklist Words and Blocked Email Addresses bypass” is fixed now.

    https://github.com/ultimatemember/ultimatemember/issues/962

    Plugin Support andrewshu

    (@andrewshu)

    Hi @klenshop

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. ??

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.