• Resolved Keryn

    (@b-summers)


    My client is using infusionsoft for his forms. I’m wondering if there is a way to use your plugin, and maybe add in a shortcode to add the captcha to the infusionsoft forms?

    I’ve been combing through your code to see how you got this working but I’m having no luck modifying it for infusionsoft 🙁

    https://ww.wp.xz.cn/plugins/wp-recaptcha-integration/

Viewing 1 replies (of 1 total)
  • Plugin Contributor podpirate

    (@podpirate)

    The method recaptcha_html on the main class returns the form html according to the plugin settings. So:

    if ( class_exists(‘WP_reCaptcha’) )
    add_shortcode( ‘recaptcha’ , array( WP_reCaptcha::instance() , ‘recaptcha_html’ ) );

    would add a [recaptcha] shortcode.

    Validating works through WP_reCaptcha::instance()->recaptcha_check();. It returns true when the captcha post parameter exists and is valid false otherwise.

    Where to hook the validation process highly depends on the architecture of infusionsoft. I cannot go into this any deeper but when you found a solution which might be worth sharing, feel free to post it here or to contribute to plugin core code: https://github.com/mcguffin/wp-recaptcha-integration

    cheers,
    jörn

Viewing 1 replies (of 1 total)

The topic ‘Add CAPTCHA to a form with shortcode?’ is closed to new replies.