@@ -40,9 +40,9 @@ public function __construct()
40
40
'pll_get_taxonomies ' , array ($ this , 'getAllTranslateableTaxonomies ' ), 10 , 2
41
41
);
42
42
43
- add_action ('update_option_wpi-features ' , array ($ this , 'updatePolyLangFromWooPolyFeatures ' ), 10 , 3 );
43
+ add_action ('update_option_wpi-features ' , array (__CLASS__ , 'updatePolyLangFromWooPolyFeatures ' ), 10 , 3 );
44
44
45
- add_action ('update_option_wpi-metas-list ' , array ($ this , 'updatePolyLangFromWooPolyMetas ' ), 10 , 3 );
45
+ add_action ('update_option_wpi-metas-list ' , array (__CLASS__ , 'updatePolyLangFromWooPolyMetas ' ), 10 , 3 );
46
46
}
47
47
48
48
/**
@@ -70,7 +70,7 @@ public function getAllTranslateableTaxonomies($taxonomies, $is_settings)
70
70
'attributes ' => 'Hyyan\WPI\Taxonomies\Attributes ' ,
71
71
'categories ' => 'Hyyan\WPI\Taxonomies\Categories ' ,
72
72
'tags ' => 'Hyyan\WPI\Taxonomies\Tags ' ,
73
- 'shipping-class ' => 'Hyyan\WPI\Taxonomies\ShippingCalss ' ,
73
+ // 'shipping-class' => 'Hyyan\WPI\Taxonomies\ShippingCalss',
74
74
);
75
75
76
76
//for each type, add it
@@ -98,7 +98,7 @@ public function getAllTranslateableTaxonomies($taxonomies, $is_settings)
98
98
*
99
99
* @return array
100
100
*/
101
- public function updatePolyLangFromWooPolyMetas ($ old_value , $ new_value , $ option )
101
+ public static function updatePolyLangFromWooPolyMetas ($ old_value , $ new_value , $ option )
102
102
{
103
103
//we could update Polylang settings for Featured Image, Comment Status, Page Order
104
104
//if the WooPoly settings have changed, but note this would also affect Posts
@@ -114,7 +114,7 @@ public function updatePolyLangFromWooPolyMetas($old_value, $new_value, $option)
114
114
*
115
115
* @return array
116
116
*/
117
- public function updatePolyLangFromWooPolyFeatures ($ old_value , $ new_value , $ option )
117
+ public static function updatePolyLangFromWooPolyFeatures ($ old_value , $ new_value , $ option )
118
118
{
119
119
$ polylang_options = get_option ('polylang ' );
120
120
$ polylang_taxs = $ polylang_options ['taxonomies ' ];
0 commit comments