Forum Replies Created
Viewing 6 posts - 1 through 6 (of 6 total)
-
AuthorPosts
-
July 13, 2021 at 11:10 PM in reply to: ✅Meta data being displayed twice (duplicated) on each admin column #29482
eckharda
ParticipantI'm having the same problem.
My current practice is to turn off aio's Admin Columns Proeckharda
ParticipantIt'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 );eckharda
ParticipantIt's just a shame that i can't customize the error message
I hope to see this amendment later.eckharda
ParticipantThe 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 dataeckharda
ParticipantI have the same problem.
eckharda
ParticipantIt’s purely I won’t use it, I’m too stupid. >"<
When can I receive a refund?
-
AuthorPosts
Viewing 6 posts - 1 through 6 (of 6 total)