• Resolved Simon Blackbourn

    (@lumpysimon)


    This plugin works with the CheckoutWC checkout page, but the Turnstile widget also appears on the ‘order received’ page.

    This is due to it using the cfw_after_cart_summary_totals action which fires on both the checkout page and the order received page. I’ve added the following code to our theme to unhook it from the order received page:

    add_action( 'wp', 'remove_turnstile_from_thank_you_page' );

    function remove_turnstile_from_thank_you_page() {

    if ( ! is_order_received_page() ) {
    return;
    }

    remove_action( 'cfw_after_cart_summary_totals', 'cfturnstile_field_checkout', 10 );

    }

    Could you please look into adding a check to the plugin so the action only runs on the checkout page?

    Thanks 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.