This function will help you to define checkout page. Use it to define that current page is checkout.
1 2 3 4 | global $WOOCS; if(is_page($WOOCS->get_checkout_page_id())){ //do smth here if current page is checkout page } |
Better use in your site header.php OR in wp_head hook callback
