Answers for "woocommerce product page id"

PHP
6

woocommerce get product id

global $product;
$product->get_id();
Posted by: Guest on July-03-2020
1

is product page woocommerce

if( is_product() ) {
	// do something
} else {
 
}
Posted by: Guest on October-14-2021

Code answers related to "woocommerce product page id"

Browse Popular Code Answers by Language