Variation_Swatches
Class Variation_Swatches
Source
File: includes/modules/woocommerce_booster/variation_swatches/variation_swatches.php
Expand full source code Collapse full source code View on Github
Methods
- add_attribute_column — Add the preview column for terms.
- add_attribute_column_content — Render preview for terms.
- add_attribute_fields — Add the root div for custom fields that are added in react.
- add_attribute_types — Add types of the variation swatches.
- array_insert_after — Insert a value or key/value pair after a specific key in an array. If key doesn't exist, value is appended to the end of the array.
- define_admin_hooks — Admin hooks.
- edit_attribute_fields — Render the custom controls when editing a swatch type term.
- enqueue_swatches_scripts — Enqueue admin script.
- get_attribute_type — Get taxonomy's type attribute.
- get_custom_field_markup_wrapper — Get custom field markup wrapper.
- get_label_by_type — Get label by input type.
- init — Init function.
- render_custom_attributes — Render custom controls based on the swatch type.
- render_product_option_terms — Display the select field in attributes type.
- sanitize_term_value — Sanitize term value by type.
- save_term_meta — Save swatch term meta.