WordPress.org

Support

Support » Plugins and Hacks » How to add a 'required' field with wpcf7_add_shortcode?

How to add a 'required' field with wpcf7_add_shortcode?

Viewing 1 replies (of 1 total)
  • Plugin Author Takayuki Miyoshi

    @takayukister

    wpcf7_add_shortcode doesn’t control required/optional of a field. You need to add wpcf7_validate_{tag type} filter. Try searching wpcf7_text_validation_filter in contact-form-7/modules/text.php.

Viewing 1 replies (of 1 total)
  • The topic ‘How to add a 'required' field with wpcf7_add_shortcode?’ is closed to new replies.