Get child/sub attributes
-
Is there a way to get child/sub attributes in this plugin for example if you select an attribute for variation and it shows all the sub attributes.
Something like the code below if you don’t understand:$args = array(
‘post_parent’ => PARENT ATTRIBUTE ID,
‘post_type’ => ‘product_variation’,
‘orderby’ => ‘menu_order’,
‘order’ => ‘ASC’,
‘fields’ => ‘ids’,
‘post_status’ => ‘publish’,
‘numberposts’ => -1
);$children = get_posts( $args );
print_r($children);
- The topic ‘Get child/sub attributes’ is closed to new replies.