$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] => )
А как получить id 1 и 2 объекта? print_r($aaa[0]); не работает. $aaa = $product_attribute[0]->get_data(); тоже не работает