• Hello!

    I’m trying to use one of the attribute values in my custom tag I created with wpcf7_add_form_tag

    For example, I created a custom attribute “color” which I can pass into the form like this:

    [contact-form-7 id=”7258″ title=”Replay Video Form” color=”red”]

    But now I want to use that in the form somehow, and I can’t figure out how to build the filter function to output an attribute value.

    [customtag color default:shortcode-attr]

    I can create the customtag and access the color name, but it won’t set a default value.

    Help?

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

    (@takayukister)

    See other built-in modules’ code (such as modules/text.php) to learn how to use the default: option to retrieve a value.

Viewing 1 replies (of 1 total)
  • The topic ‘Possible to use default:shortcode_attr with wpcf7_add_form_tag custom tag?’ is closed to new replies.