WC_Product::set_slug()
Set product slug.
Method of the class: WC_Product{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product = new WC_Product(); $WC_Product->set_slug( $slug );
- $slug(string) (required)
- Product slug.
Changelog
Since 3.0.0 | Introduced. |
WC_Product::set_slug() WC Product::set slug code WC 9.7.1
public function set_slug( $slug ) { $this->set_prop( 'slug', $slug ); }