- This topic has 6 replies, 2 voices, and was last updated 1 year ago by .
-
Topic
-
This is My Code.
array( 'id' => $prefix . 'name', 'type' => 'text', 'name' => esc_html__( 'Name', 'text-domain' ), 'tab' => 'personal_information', 'required' => true ),
And I am Used Validation Rules also,
'validation' => array( 'rules' => array( 'name' => array( 'required' => true, 'minlength' => 7 ), ), 'messages' => array( 'field_id' => array( 'required' => 'Name is required', 'minlength' => 'Name must be at least 7 characters', ), ), ),
Whats is the problem.the same code worked for me in Meta Box Old Version.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.