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

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 10 hours, 48 minutes ago.

  • 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.