Skip to content

 

Target WooCommerce Products and Pages Using PHP Conditionals

Author: 

WPbeaches


Description: 

WooCommerce comes with a number of pages and a custom post type named ‘products‘, sometimes you may want to just target some of these products or pages so you can add some PHP custom code in your functions.php file of your theme, this can target all or parts of WooCommerce using PHP conditional statements.




Kind:

PHP, woocommerce


URL: