• Hello,
    I need to modify some plugin to don’t run on woocommerce cart. I am wondering why is_cart() function not working. I have tried is_page('9') (the page id with cart is 9)

    if (!is_cart())
    {
    add_action( 'template_redirect', 'some_fucntion' );
    }

    Please help 🙂

    • This topic was modified 6 years, 4 months ago by mic85b.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘is_cart in plugin doesn’t work’ is closed to new replies.