PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.0.1
JetFormBuilder — Dynamic Blocks Form Builder v3.0.1
3.6.5.1 3.6.5 3.6.4.2 3.6.4.1 3.6.4 3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / includes / compatibility / woocommerce / methods / wc-product-modification / wc-product-modifier.php
jetformbuilder / includes / compatibility / woocommerce / methods / wc-product-modification Last commit date
base-product-property.php 3 years ago product-backorders-property.php 3 years ago product-catalog-visibility-property.php 3 years ago product-cross-sell-ids-property.php 3 years ago product-date-on-sale-from-property.php 3 years ago product-date-on-sale-to-property.php 3 years ago product-date-property.php 3 years ago product-description-property.php 3 years ago product-featured-property.php 3 years ago product-gallery-property.php 3 years ago product-height-property.php 3 years ago product-id-property.php 3 years ago product-image-property.php 3 years ago product-length-property.php 3 years ago product-low-stock-amount-property.php 3 years ago product-manage-stock-property.php 3 years ago product-name-property.php 3 years ago product-parent-property.php 3 years ago product-regular-price-property.php 3 years ago product-reviews-allowed-property.php 3 years ago product-sale-price-property.php 3 years ago product-short-description-property.php 3 years ago product-sku-property.php 3 years ago product-sold-individually-property.php 3 years ago product-status-property.php 3 years ago product-stock-quantity-property.php 3 years ago product-stock-status-property.php 3 years ago product-tax-class-property.php 3 years ago product-tax-status-property.php 3 years ago product-total-sales-property.php 3 years ago product-upsell-ids-property.php 3 years ago product-weight-property.php 3 years ago product-width-property.php 3 years ago save-action.php 3 years ago trash-action.php 3 years ago wc-product-modifier.php 3 years ago
wc-product-modifier.php
85 lines
1 <?php
2
3
4 namespace Jet_Form_Builder\Compatibility\Woocommerce\Methods\Wc_Product_Modification;
5
6
7 use Jet_Form_Builder\Actions\Methods\Object_Properties_Collection;
8 use Jet_Form_Builder\Actions\Methods\Post_Modification\Abstract_Post_Modifier;
9 use Jet_Form_Builder\Actions\Methods\Post_Modification\Post_Meta_Property;
10 use Jet_Form_Builder\Actions\Methods\Post_Modification\Post_Terms_Property;
11 use Jet_Form_Builder\Actions\Types\Insert_Post;
12 use Jet_Form_Builder\Classes\Arrayable\Collection;
13
14 class Wc_Product_Modifier extends Abstract_Post_Modifier {
15
16 public function is_supported( Insert_Post $action ): bool {
17 return 'product' === $action->get_post_type();
18 }
19
20 public function get_id(): string {
21 return 'product';
22 }
23
24 public function before_run( Insert_Post $action ) {
25 parent::before_run( $action );
26
27 // for property post_title
28 $this->source_arr['post_type'] = 'product';
29 }
30
31 protected function get_properties(): Object_Properties_Collection {
32 return new Object_Properties_Collection(
33 array(
34 new Product_Id_Property(),
35 new Product_Name_Property(),
36 new Product_Status_Property(),
37 new Product_Description_Property(),
38 new Product_Short_Description_Property(),
39 new Product_Date_Property(),
40 new Product_Image_Property(),
41 new Product_Reviews_Allowed_Property(),
42 new Product_Parent_Property(),
43 new Post_Meta_Property(),
44 new Post_Terms_Property(),
45 new Product_Featured_Property(),
46 new Product_Catalog_Visibility_Property(),
47 new Product_Sku_Property(),
48 new Product_Regular_Price_Property(),
49 new Product_Sale_Price_Property(),
50 new Product_Date_On_Sale_From_Property(),
51 new Product_Date_On_Sale_To_Property(),
52 new Product_Total_Sales_Property(),
53 new Product_Tax_Status_Property(),
54 new Product_Tax_Class_Property(),
55 new Product_Manage_Stock_Property(),
56 new Product_Stock_Quantity_Property(),
57 new Product_Stock_Status_Property(),
58 new Product_Backorders_Property(),
59 new Product_Low_Stock_Amount_Property(),
60 new Product_Sold_Individually_Property(),
61 new Product_Weight_Property(),
62 new Product_Length_Property(),
63 new Product_Width_Property(),
64 new Product_Height_Property(),
65 new Product_Upsell_Ids_Property(),
66 new Product_Cross_Sell_Ids_Property(),
67 new Product_Gallery_Property(),
68 )
69 );
70 }
71
72 public function get_actions(): Collection {
73 return apply_filters(
74 'jet-form-builder/product-modifier/object-actions',
75 new Collection(
76 array(
77 new Trash_Action(),
78 new Save_Action(),
79 )
80 )
81 );
82 }
83
84
85 }