WC_Product::set_featured( bool|string $featured )
Set if the product is featured.
Description Description
Parameters Parameters
- $featured
-
(Required) Whether the product is featured or not.
Source Source
File: includes/abstracts/abstract-wc-product.php
public function set_featured( $featured ) { $this->set_prop( 'featured', wc_string_to_bool( $featured ) ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |