I am trying to insert this meta information into the cart and checkout page for woocommerce. It will hide a specific plugin on those pages. However i know if i edit the plugin files for woocommerce it will be overwritten on woocommerce update.
How would i do that correctly? Jquery? Or even function.php function?
if (wc_get_page_id( 'cart' ) == get_the_ID()) {
<meta name="yo:active" content="false">
}
or
if !is_page(array('cart', 'checkout')) {
$('#yoHolder').attr("style", "display: none !important");
}
i tried this too to achieve same outcome of hiding it but didnt work.
Thanks for any help!
wp_enqueue_scripts
action.