woof_print_tax_additional_options_{type}
Using in extension for printing additional options under ‘additional options’ button like in color:
Example:
add_action('woof_print_tax_additional_options_color', array($this, 'print_additional_options'), 10, 1); public function print_additional_options($key) { global $WOOF; $woof_settings = $WOOF->settings; $terms = WOOF_HELPER::get_terms($key, 0, 0, 0, 0); if (!empty($terms)) { echo '<ul class="woof_color_list">'; foreach ($terms as $t) { $color = '#000000'; if (isset($woof_settings['color'][$key][$t['slug']])) { $color = $woof_settings['color'][$key][$t['slug']]; } $color_img = ''; if (isset($woof_settings['color_img'][$key][$t['slug']])) { $color_img = $woof_settings['color_img'][$key][$t['slug']]; } ?> <li> <table> <tr> <td valign="top"> <input type="text" name="woof_settings[color][<?php echo $key ?>][<?php echo $t['slug'] ?>]" value="<?php echo $color ?>" id="woof_color_picker_<?php echo $t['slug'] ?>" class="woof-color-picker" > </td> <td> <input type="text" name="woof_settings[color_img][<?php echo $key ?>][<?php echo $t['slug'] ?>]" value="<?php echo $color_img ?>" placeholder="<?php _e('background image url 25x25', 'woocommerce-products-filter') ?>" class="text" style="width: 600px;" /> <a href="#" class="woof-button woof_select_image"><?php _e('Select Image', 'woocommerce-products-filter') ?></a> </td> <td valign="top" style="padding: 4px 0 0 0;"> <p class="description"> [ <?php echo strtolower($t['name']) ?> ]</p> </td> </tr> </table> </li> <?php } echo '</ul>'; } }
Troubles? Ask for Support!