Using Hooks
A hook is an easier way for developer to add custom functionality into WordPress themes and plugins.
Addonify Compare Products has defined some action hooks to render templates at the frontend. Some of the action hooks are as below:
- addonify_compare_products/compare_button
- addonify_compare_products/docker_modal
- addonify_compare_products/docker_message
- addonify_compare_products/docker_content
- addonify_compare_products/docker_add_button
- addonify_compare_products/docker_compare_button
- addonify_compare_products/search_modal
- addonify_compare_products/search_result
- addonify_compare_products/comparison_modal
- addonify_compare_products/comparison_content
Example:
add_action( 'addonify_compare_products/compare_button', 'your_function_name' ); function your_function_name() { // Your code }