• Hello,

    We have several versions of Woo Cart order pages. I’d like to add your captcha to only one of these Pages. Can I add some code to functions.php to test if Page = X then load Captcha plugin? Otherwise do NOT load captcha plugin.

    I see you have a checkbox for WooCommerce, but I don’t want the captcha on all my WooCommerce cart pages, just a single page.

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • It is possible but require more code that just check page id. When order submit it check if captcha is verified or not, You need to exclude other order submit which did not come from your desire page.

    Thread Starter frankin-grep

    (@boulderpoet)

    Hi, Thank you, do you have any sample code on how to do that? Or a place to look in your plugin code for an example?

    You can see anr_verify_captcha_pre hook. You can conditionally check here if it is coming from that page and return your desire result.

    Thread Starter frankin-grep

    (@boulderpoet)

    Hi Shamim, Thank you, I’ll try that hook.

    Best

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce: Add to a single specific page only?’ is closed to new replies.