Viewing 5 replies - 1 through 5 (of 5 total)
  • +1 this request. I was just about to ask this. Maybe even an Empty Favorites button to clear the entire list in one shot.

    If you can make this happen, it’d be wonderful. Thanks.

    +1+1+1+1!!

    Yes. it will be great if you can add a function to clear all favorites at once on single button click

    Plugin Author Kyle Phillips

    (@kylephillips)

    This has been added in v1.2.0.

    You can use the shortcode [clear_favorites_button] to show the button. It has 2 optional parameters, site_id & text. So, if you wanted the button to say “Clear Favorites” it would be [clear_favorites_button text="Clear Favorites"]

    There’s also a couple of template functions that accept the same parameters: get_clear_favorites_button() and the_clear_favorites_button()

    As far as removing an item from the list when someone unfavorites it… that has also been added in 1.2.0. The option has been added to include the button when generated the list.

    Documentation for all this is up on the plugin website. If you have page cache enabled, you may need to delete the cache to get the “auto” list updates working.

    Hey there, Kyle,

    that’s really good to hear! The clearing button seems to work quite well, after a moment or two the whole list being cleared.

    As regards to the ‘Delete favourite’ button, what I actually meant was that on my user-list view, I want to be able to either delete/clear all favourites or delete single items. I thought maybe include_button=”true” would bring that, but it doesn’t. I was solely referring to the user’s own list where he wants to delete single items :).

    All the best

    physalis

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Link to remove items in favorites list?’ is closed to new replies.