Skip to content

Commit

Permalink
ADD: filter insert product properties
Browse files Browse the repository at this point in the history
Resolve: #388
  • Loading branch information
ihslimn authored Jan 23, 2024
1 parent 2c03b34 commit baff93f
Showing 1 changed file with 39 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,42 +33,45 @@ public function before_run( Insert_Post $action ) {
}

protected function get_properties(): Object_Properties_Collection {
return new Object_Properties_Collection(
array(
new Product_Id_Property(),
new Product_Name_Property(),
new Product_Status_Property(),
new Product_Description_Property(),
new Product_Short_Description_Property(),
new Product_Date_Property(),
new Product_Image_Property(),
new Product_Reviews_Allowed_Property(),
new Product_Parent_Property(),
new Post_Meta_Property(),
new Post_Terms_Property(),
new Product_Featured_Property(),
new Product_Catalog_Visibility_Property(),
new Product_Sku_Property(),
new Product_Regular_Price_Property(),
new Product_Sale_Price_Property(),
new Product_Date_On_Sale_From_Property(),
new Product_Date_On_Sale_To_Property(),
new Product_Total_Sales_Property(),
new Product_Tax_Status_Property(),
new Product_Tax_Class_Property(),
new Product_Manage_Stock_Property(),
new Product_Stock_Quantity_Property(),
new Product_Stock_Status_Property(),
new Product_Backorders_Property(),
new Product_Low_Stock_Amount_Property(),
new Product_Sold_Individually_Property(),
new Product_Weight_Property(),
new Product_Length_Property(),
new Product_Width_Property(),
new Product_Height_Property(),
new Product_Upsell_Ids_Property(),
new Product_Cross_Sell_Ids_Property(),
new Product_Gallery_Property(),
return apply_filters(
'jet-form-builder/wc-product-modifier/object-properties',
new Object_Properties_Collection(
array(
new Product_Id_Property(),
new Product_Name_Property(),
new Product_Status_Property(),
new Product_Description_Property(),
new Product_Short_Description_Property(),
new Product_Date_Property(),
new Product_Image_Property(),
new Product_Reviews_Allowed_Property(),
new Product_Parent_Property(),
new Post_Meta_Property(),
new Post_Terms_Property(),
new Product_Featured_Property(),
new Product_Catalog_Visibility_Property(),
new Product_Sku_Property(),
new Product_Regular_Price_Property(),
new Product_Sale_Price_Property(),
new Product_Date_On_Sale_From_Property(),
new Product_Date_On_Sale_To_Property(),
new Product_Total_Sales_Property(),
new Product_Tax_Status_Property(),
new Product_Tax_Class_Property(),
new Product_Manage_Stock_Property(),
new Product_Stock_Quantity_Property(),
new Product_Stock_Status_Property(),
new Product_Backorders_Property(),
new Product_Low_Stock_Amount_Property(),
new Product_Sold_Individually_Property(),
new Product_Weight_Property(),
new Product_Length_Property(),
new Product_Width_Property(),
new Product_Height_Property(),
new Product_Upsell_Ids_Property(),
new Product_Cross_Sell_Ids_Property(),
new Product_Gallery_Property(),
)
)
);
}
Expand Down

0 comments on commit baff93f

Please sign in to comment.