Using Hooks
A hook is an easier way for developer to add custom functionality into WordPress themes and plugins.
Addonify Variation Swatches plugin has only two hooks that theme author can use to modify plugin content on the fly.
- addonify_vs_start_of_variation_attributes_list
- addonify_vs_end_of_variation_attributes_list
Use these hooks can be used to modify the content generated by our plugin.
Example
add_filter( 'addonify_vs_start_of_variation_attributes_list', 'your_function_name' ); function your_function_name( $attribute_type ) { // Your code }