The `is_on_sale` function in PHP WC_Product is used to determine if a product is currently on sale or not. It returns a boolean value, `true` if the product is on sale and `false` if it is not. This function can be useful for displaying special sale badges or promotions for products on an e-commerce website.
PHP WC_Product::is_on_sale - 22 examples found. These are the top rated real world PHP examples of WC_Product::is_on_sale extracted from open source projects. You can rate examples to help us improve the quality of examples.