[wishlist_button id="1234"]
Or
<?php // Under loop $post_id = get_the_ID(); echo do_shortcode( "[wishlist_button id=$post_id]" ); ?>
This shortcode use for displaying wishlist add button, under loop you can dynamic post id. by default WooCommerce shop page will display automatically.
Parameters:
id
: integer or urlobj_type
: post, term, author, urlshow_count
: yes , noshow_menu
: yes , noicon_active
: string(html) – Font awesome icons htmlicon_inactive
: string(html) – Font awesome icons htmlicon_loading
: string(html) – Font awesome icons html