Support Forum » User Profile

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • eckhardaeckharda
    Participant

    I'm having the same problem.
    My current practice is to turn off aio's Admin Columns Pro

    in reply to: Backend validation for registration form #29453
    eckhardaeckharda
    Participant

    It's a bad way to go, but it works for me.

    open \meta-box-aio\vendor\meta-box\mb-user-profile\src\Forms\Base.php

    
    if (!$is_valid) {
                $this->error->set(__('Invalid form submit.', 'mb-user-profile'));
                return null;
    }
    

    modify to

    
    if (!$is_valid[0]){
                $this->error->set($is_valid[1]);
                return null;
    }
    
    
    
    add_filter( 'rwmb_profile_validate', function( $is_valid, $config ) {
        if ( 'invitation_verification' === $config['id'] ) {
            if ( '123' !== $_POST['invitation_code'] ) {
                $is_valid = [false,'Error Text'];
            }
        }
        return $is_valid;
    }, 10, 2 );
    
    in reply to: Backend validation for registration form #29447
    eckhardaeckharda
    Participant

    It's just a shame that i can't customize the error message
    I hope to see this amendment later.

    in reply to: Backend validation for registration form #29437
    eckhardaeckharda
    Participant

    The method I use is wp_die('error text');
    rwmb_profile_validate can validate
    But it cannot return custom error messages
    I wish there was a perfect solution too
    Because I don't want to use ajax to validate unique data

    in reply to: Backend validation for registration form #29428
    eckhardaeckharda
    Participant

    I have the same problem.

    in reply to: I want a refund #13923
    eckhardaeckharda
    Participant

    It’s purely I won’t use it, I’m too stupid. >"<

    When can I receive a refund?

Viewing 6 posts - 1 through 6 (of 6 total)