slug; $query_args = array( 'status' => 'publish', 'limit' => -1, 'category' => array( $category_slug ), ); } if(is_shop()){ $query_args = array( 'status' => 'publish', 'limit' => -1, ); $taxArr = array( 'pa_dlya-kogo', 'pa_pr_type', 'pa_taste', 'pa_ves-upakovki' ); } foreach( wc_get_products($query_args) as $product ){ foreach( $product->get_attributes() as $taxonomy => $attribute ){ $attribute_name = wc_attribute_label( $taxonomy ); // $attribute_name = get_taxonomy( $taxonomy )->labels->singular_name; foreach ( $attribute->get_terms() as $term ){ if(in_array($taxonomy, $taxArr)) { $data[$taxonomy][$term->slug] = $term->name; } // $data[$attribute_name][$term->term_id] = $term->name; } } } ?>
Add a pet
Feed subscription
Thank you for your interest in our new type of service, this feature is under development, if you want to be the first to know about the launch, subscribe to the newsletter.
Change my personal info
user_firstname; $last_name = $current_user->user_lastname; $phone = get_user_meta( $current_user->ID, 'billing_phone', true ); ?>