# get_attributes( 'edit' ); foreach ( $product_object->get_attributes( 'edit' ) as $attribute ) { if ( ! $attribute->get_variation() ) { continue; } $selected_value = isset( $attribute_values[ sanitize_title( $attribute->get_name() ) ] ) ? $attribute_values[ sanitize_title( $attribute->get_name() ) ] : ''; ?>