Viewing 1 replies (of 1 total)
  • Plugin Author Ironikus

    (@ironikus)

    Hey @michalzwierz – Thanks for reaching out!

    I’ve just released a new version that offers a WordPress filter that you can use to prevent certain pages from being protected:

    apply_filters( 'eeb/frontend/apply_protection', $apply_protection )

    Here’s a callback as an example:

    function eeb_frontend_apply_protection_callback($apply_protection) {
        if (is_checkout() && is_woocommerce()) {
            // Add your custom logic here to apply protection on the WooCommerce checkout page
            // Example: $apply_protection = true; // Enable protection
            // Example: $apply_protection = false; // Disable protection
        }
        return $apply_protection;
    }
    
    add_filter('eeb/frontend/apply_protection', 'eeb_frontend_apply_protection_callback');
    
Viewing 1 replies (of 1 total)
  • The topic ‘TrustedShops exemption’ is closed to new replies.