[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.

Shortcode - wishlist_button 1

Parameters:

 

  • id: integer or url
  • obj_type: post, term, author, url
  • show_count: yes , no
  • show_menu: yes , no
  • icon_active: string(html) – Font awesome icons html
  • icon_inactive: string(html) – Font awesome icons html
  • icon_loading: string(html) – Font awesome icons html