• Resolved jugibur

    (@jugibur)


    Hi,
    Is it possible to execute a standard form tag in a PHP hook function as well?

    For example:
    I defined a custom form tag named ‘[dp]’ and like to execute the following standard tag in a ‘wpcf7_add_form_tag’ function hook:

    [acceptance cb-dataprotection]Here follows a text with a link.....<span class="required">*</span>[/acceptance].

    Unfortunately, the standard tag is not replaced by the usual checkbox.

    Any help would be great.
    Jürgen

    • This topic was modified 3 years, 8 months ago by jugibur.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter jugibur

    (@jugibur)

    EDIT:
    I have now found WPCF7_FormTagsManager::get_instance() and got my problem solved.
    BTW: Thanks for your great plugin!
    Yes, a custom form tag is working and not the problem.
    I mean using a standard form tag using in the code of a custom form tag.


    So what I search is a way to manually search and replace your standard form tags inside my PHP function to real input fields.

    • This reply was modified 3 years, 8 months ago by jugibur.
    • This reply was modified 3 years, 8 months ago by jugibur.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replacing standard tags in PHP function (hook)’ is closed to new replies.