Custom Add to Wishlist Button
Addonify Wishlist also supports custom add to wishlist button. Below is the markup of the custom add to wishlist button:
<button class="adfy-wishlist-btn addonify-add-to-wishlist-btn addonify-custom-wishlist-btn" data-product_id="{product_id}">{button_label}</button>
You can add custom CSS classes, but addonify-add-to-wishlist-btn is a necessary CSS class that is used to fire the add to wishlist functionality.
You also need to provide ID of WooCommerce product in the attribute data-product_id.
You can have your own button label. But if you wish to have the button label from the Addonify Wishlist plugin’s setting page, use the code below:
addonify_wishlist_get_option( 'btn_label' )