Using Hooks
A hook is an easier way for developer to add custom functionality into WordPress themes and plugins.
Addonify Wishlist has multiple hooks that theme author can use to modify plugin content on the fly.
Actions used in the shortcode, “[addonify_wishlist]”, content are:
- addonify_wishlist_before_wishlist_form
- addonify_wishlist_after_wishlist_form
- addonify_wishlist_before_wishlist_form_table
- addonify_wishlist_after_wishlist_form_table
Filters used in “pop up modal” are:
- addonify_wishlist_modal_add_to_wishlist_btn
- addonify_wishlist_modal_login_btn
- addonify_wishlist_modal_close_btn
Actions used in popup modal are:
- addonify_wishlist_popup_action_btns
- addonify_wishlist_after_popup_opening_tag
- addonify_wishlist_before_popup_closing_tag
Actions used in sidebar modal are:
- addonify_wishlist_before_wishlist_form_table
- addonify_wishlist_after_wishlist_form_table
- addonify_wishlist_after_sidebar_opening_tag
- addonify_wishlist_before_sidebar_closing_tag
Other useful actions are:
- addonify_wishlist_before_adding_to_wishlist
- addonify_wishlist_after_adding_to_wishlist
- addonify_wishlist_modal_add_to_wishlist_btn
- addonify_wishlist_modal_login_btn
- addonify_wishlist_modal_close_btn
Other useful filters are:
- addonify_wishlist_product_in_stock_label
- addonify_wishlist_product_out_of_stock_label
These hooks can be used to modify the content generated by the Addonify Wishlist plugin.
Example
<?php add_filter( 'addonify_wishlist_modal_close_btn', 'your_function_name' ); function your_function_name() { // Your code here. }