Method | Description | |
---|---|---|
create_attribute ( ) : array | Create a dummy attribute. | |
create_external_product ( ) : WC_Product_External | Create external product. | |
create_grouped_product ( ) : WC_Product_Grouped | Create grouped product. | |
create_product_review ( $product_id, $review_content = 'Review content here' ) : integer | Creates a new product review on a specific product. | |
create_simple_product ( ) : WC_Product_Simple | Create simple product. | |
create_variation_product ( ) : WC_Product_Variable | Create a dummy variation product. | |
delete_attribute ( $attribute_id ) | Delete an attribute. | |
delete_product ( $product_id ) | Delete a product. |
public static create_attribute ( ) : array | ||
return | array |
public static create_external_product ( ) : WC_Product_External | ||
return | WC_Product_External |
public static create_grouped_product ( ) : WC_Product_Grouped | ||
return | WC_Product_Grouped |
public static create_product_review ( $product_id, $review_content = 'Review content here' ) : integer | ||
$product_id | integer Product ID that the review is for | |
return | integer | Product Review ID |
public static create_simple_product ( ) : WC_Product_Simple | ||
return | WC_Product_Simple |
public static create_variation_product ( ) : WC_Product_Variable | ||
return | WC_Product_Variable |
public static delete_attribute ( $attribute_id ) | ||
$attribute_id |
public static delete_product ( $product_id ) | ||
$product_id |