Custom Fields
Re-Envisioned
Support General Required attribute doesn't work on image field

  • Creator
    Topic
  • #13751
    woorise
    Participant

    I have set the following field but the “required” doesn’t work. I’m able to update post without upload an image.

    [
        'name' => esc_html__( 'Logo', 'text' ),
        'id' => '_logo',
        'type' => 'image',
        'force_delete' => true,
        'max_file_uploads' => 1,
        'required' => true,
    ],
Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #13772
    Anh Tran
    Keymaster

    It’s fixed here and will be available in the new version soon.

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

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash