• Hi,

    I’m using plugin for approve registration.

    i need to Add role for not approved users to redirection to my one page.

    like this–

    if ( $status == 'pending' ) {
            $message = __( '<strong>ERROR</strong>: Your account is still pending approval.', 'new-user-approve' );
            $message = apply_filters( 'new_user_approve_pending_error', $message );
    
            // Redirect the user to the '/documents' page
            wp_safe_redirect( home_url( '/documents' ) );
            exit();
        }

    this code is working for wp-admin but not working with your popup form.

    Please give me code how should i redirect them to correctly.

    thank you

  • The topic ‘Redirect tion for not approved users’ is closed to new replies.