Question
I have code: <?php $attributes = $product->get_variation_attributes($variation_ids); $attribute_keys = array_keys( $attributes ); ?> <?php foreach ( $attributes as $attribute_name => $options ) : ?> <tr> <td class="label"><label for="<?php echo sanitize_title( $attribute_name ); ?>"><?php echo wc_attribute_label( ...
0
, 3 days 0 Answers 7 views

Question
I am creating a widget that handles order numbers. The basic structure is as follow: // pretty generic widget functions public function widget($args, $instance) { $order_number = $instance['order_number']; } public function update($new_instance, $old_instance) { $instance = $old_instance; $instance['order_number'] = strip_tags($new_instance['order_number']); } public function form($instance) { ...
0
, , , 3 years 0 Answers 14 views