WC_Product::set_slug
Set product slug.
Method of the class: WC_Product{}
No Hooks.
Returns
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 10.4.3
public function set_slug( $slug ) {
$this->set_prop( 'slug', $slug );
}