Using a function to change favorites listing
Sorry - total newbie here with Wordpress development.
I have the following plugin installed https://favoriteposts.com/ and it allows you to change the default output of the users favorites by using the following function:
/**
* Customize the Favorites Listing HTML
*/
add_filter( 'favorites/list/listing/html', 'custom_favorites_listing_html', 10, 4 );
function custom_favorites_listing_html($html, $markup_template, $post_id, $list_options)
{
return $html;
}
I just don't know how to use this.
What I would like is for the output to match that of the default woocommerce product loop. The only custom post type I've selected in the settings for this plugin is 'product'.
Any advice?