메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | array |
public static create_external_product ( ) : WC_Product_External | ||
리턴 | WC_Product_External |
public static create_grouped_product ( ) : WC_Product_Grouped | ||
리턴 | 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 | |
리턴 | integer | Product Review ID |
public static create_simple_product ( ) : WC_Product_Simple | ||
리턴 | WC_Product_Simple |
public static create_variation_product ( ) : WC_Product_Variable | ||
리턴 | WC_Product_Variable |
public static delete_attribute ( $attribute_id ) | ||
$attribute_id |
public static delete_product ( $product_id ) | ||
$product_id |