Skip to content

Releases: kylephillips/favorites

v2.1.0

17 Jun 18:27
Compare
Choose a tag to compare
  • Option added to enable a modal notification for anonymous users. Modal content is editable under Settings > Favorites > Users. Anonymous users must be disabled, and the "Require Login & Show Modal" must be checked. The content is also available via a filter: favorites/authentication_modal_content. If the plugin css has been disabled and this feature is required, please see the plugin styles for new css classes required for modals to function.
  • Button customization options added, including color settings and preset button types. Visit Settings > Favorites > Display & Post Types to customize the button. In addition to now having the ability to choose a preset button type, button colors may be specified to better match your theme without editing CSS files.
  • Option added to customize the favorites list. Options are now included for specifying the HTML element type and custom CSS classes for both the list wrapper element and individua listing elements. Additionally, the listings may be fully customized using a standard WordPress editor field.
  • Various filters have been added. See the plugin website for a detailed list of available filters.

v2.0.2

13 Jun 14:27
Compare
Choose a tag to compare
  • Option added to use a css/html loading indicator in place of an image. Additional filters added for theme use
  • Shortcode option added to the favorites list "user_favorites" for including the post thumbnail. To include the thumbnail, pass the option include_thumbnails="true". To specify a thumbnail size, pass it in as an option: thumbnail_size="thumbnail"
  • Shortcode option added to the favorites list "user_favorites" for including the post excerpt. To include the excerpt, pass the option include_excerpt="true"
  • Filters added for the list thumbnail and list excerpt. See plugin documentation for names and parameters
  • Plugin settings redesigned

v2.0.1

10 Jun 15:48
Compare
Choose a tag to compare
  • Javascript callback functions have been deprecated in place of events. Deprecated functions will be removed in a later version. Please see the plugin documentation on using the new events
  • App namespace renamed to "Favorites". Important: any developers extending the plugin core should update any references in PHP namespaces to \Favorites\
  • Plugin text domain updated to "favorites" to follow WordPress requirements
  • AJAX actions renamed to remove "simple" prefix
  • Bug fix where adding a favorite required a page refresh for it to appear in favorite lists
  • Added API function to get the total count of favorites across all posts
  • Tested with WordPress 4.8

v1.2.3

09 Sep 02:09
Compare
Choose a tag to compare
  • Bug fix - post type parameter in shortcode being overwritten by javascript on load

v1.2.2

15 Aug 03:04
Compare
Choose a tag to compare
  • Bug fix - incorrect list being displayed when passing a specific user id to get_user_favorites_list();

v1.2.1

09 Aug 19:18
Compare
Choose a tag to compare
  • Bug fix where [user_favorite_count] shortcode always returning 0 in multisite installations.
  • Added filter to customize user list output.
  • Tested for WordPress 4.3 compatibility

v1.2.0

02 Aug 00:51
Compare
Choose a tag to compare
  • Added functionality to display users who have favorited a post. Use the shortcode [post_favorites] or one of the two new template functions: get_users_who_favorited_post or the_users_who_favorited_post. View the plugin website for options and usage examples.
  • Added shortcode and template functions to display a "Clear Favorites" button. Button clears all user favorites when clicked.
  • Added developer hooks for before and after a post has been favorited.
  • Added developer Javascript callback functions for after the page has loaded, and after a favorite has been submitted.
  • Option added to include favorite button in generated list (see "Other Notes" tab or plugins website for template functions and shortcode)
  • Option added to customize text that displays in lists when the user has no favorites (visit settings > favorites > display to customize the text)
  • Post type(s) parameter added to get_user_favorites_count template function and user_favorite_count shortcode.
  • User favorite count now updated dynamically (may require a cache reset if page cache is enabled)
  • Bug fix - Invalid posts removed from user favorites (trashed/unpublished posts).
  • Other various enhancements and minor bug fixes

v1.1.4

02 May 15:22
Compare
Choose a tag to compare
  • Fixed bug that allowed multiple button submissions before the previous was processed

v1.1.3

02 May 15:11
Compare
Choose a tag to compare
  • Option added to hide loading indication on page load.

v1.1.2

25 Apr 23:39
Compare
Choose a tag to compare
  • Bug fix in plugin settings when deselecting all automatic post type insertions.