Skip to content
Addonify

Addonify

Documentation & knowledge based site

  • Docs
    • Quick View
    • Compare Products
    • Floating Cart
    • EDD 2Checkout Inline Gateway
  • Plugins
  • Themes
  • Support
  • Blog
Addonify store
  • Docs
    • Quick View
    • Compare Products
    • Floating Cart
    • EDD 2Checkout Inline Gateway
  • Plugins
  • Themes
  • Support
  • Blog

Getting started [1]

  • Installation

Developer [2]

  • Using Hooks
  • Override Templates
  • Home
  • Kb
  • WooCommerce Variation Swatches
  • Developer
  • Using Hooks

Using Hooks

  • Updated on: December 27, 2020

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
}

Didn't find what you looking for? Try sending your questions from our contact page.

Your feedback matters to us. Was this article helpful to you?

Copyright © 2022 addonify.com. All rights reserved.

Project by 💖 CreamCode.Org