print_r($product_attribute);WC_Product_Attribute Object ( [data:protected] => Array ( [id] => 1 [name] => pa_mark [options] => Array ( [0] => 24 ) [position] => 0 [visible] => 1 [variation] => ) )
WC_Product_Attribute Object ( [data:protected] => Array ( [id] => 2 [name] => pa_width [options] => Array ( [0] => 25 ) [position] => 1 [visible] => 1 [variation] => ) )
Array ( [0] => is_taxonomy [1] => get_taxonomy [2] => get_taxonomy_object [3] => get_terms [4] => get_slugs [5] => get_data [6] => set_id [7] => set_name [8] => set_options [9] => set_position [10] => set_visible [11] => set_variation [12] => get_id [13] => get_name [14] => get_options [15] => get_position [16] => get_visible [17] => get_variation [18] => offsetGet [19] => offsetSet [20] => offsetUnset [21] => offsetExists ) Array ( [0] => is_taxonomy [1] => get_taxonomy [2] => get_taxonomy_object [3] => get_terms [4] => get_slugs [5] => get_data [6] => set_id [7] => set_name [8] => set_options [9] => set_position [10] => set_visible [11] => set_variation [12] => get_id [13] => get_name [14] => get_options [15] => get_position [16] => get_visible [17] => get_variation [18] => offsetGet [19] => offsetSet [20] => offsetUnset [21] => offsetExists ) $aaa = $product_attribute->get_data();
print_r($aaa);Array ( [id] => 1 [name] => pa_mark [options] => Array ( [0] => 24 ) [position] => 0 [visible] => 1 [variation] => [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 [value] => )
Array ( [id] => 2 [name] => pa_width [options] => Array ( [0] => 25 ) [position] => 1 [visible] => 1 [variation] => [is_visible] => 1 [is_variation] => 0 [is_taxonomy] => 1 [value] => )