WordPress maintenance or security needs? Reach out!
TLDWP

Plugin: favorites (Used by 3,020 domains)

Favorites

Why Favorites?

Favorites is designed for end users and theme developers. It provides an easy-to-use API for adding favorite button functionality to any post type.

The plugin can provide a way to save favorites, likes, bookmarks, or any other similar types of data with its customizable button text.

Visit favoriteposts.com for a full list of available template functions and shortcodes.

Features

Use with Any Post Type – Enable or disable favorite functionality per post type while automatically adding a favorite button before and/or after the content. Or, use the included functions to display the button anywhere in your template.

Available for All Users – Don’t want to hide functionality behind a login? Favorites includes an option to save anonymous users’ favorites by either Session or Cookie. Logged-In users’ favorites are also saved as user meta

Designed for Developers – Favorites works great out-of-the-box for beginners, but a full set of template functions unlocks just about any sort of custom functionality developers may need. Favorites outputs the minimum amount of markup needed, putting the style and control in your hands.

GDPR

As of version 2.2, a setting is provided to help comply with GDPR standards. To enable this setting, visit Settings > Favorites > Users, and check the field under “User Cookie Consent.” When this setting is enabled, the content saved under the setting displays in a modal window, and the user must agree to the terms you provide before favorite cookies can be saved. Note: There is no language provided by default. This should be supplied by a qualified attorney or legal entity. Once the user has approved or denied cookies, that is saved in the “simplefavorites” cookie along with the timestamp of approval or denial. If the site is part of a multi-site installation, the setting will carry through to all sites.

If your site already has a cookie compliance solution in place, there are two document-level jQuery events that may be triggered in order to approve or deny cookies in the background.

To approve the use of cookies, trigger the event “favorites-user-consent-approved”. To deny the use of cookies, trigger the event “favorites-user-consent-denied”.

Multisite Compatible – As of version 1.1.0, Favorites is multisite compatible. User favorites are saved on a site/blog basis, and may be retrieved and displayed across sites.

For more information visit favoriteposts.com.

Important: Favorites requires WordPress version 3.8 or higher, and PHP version 5.4 or higher.

Usage

Favorite Button

The favorite button can be added automatically to the content by enabling specific post types in the plugin settings. It may also be added to template files or through the content editor using the included functions or shortcodes. The post id may be left blank in all cases if inside the loop. The site id parameter is optional, for use in multisite installations (defaults to current site).

  • Get function: get_favorites_button($post_id, $site_id)
  • Print function: the_favorites_button($post_id, $site_id)
  • Shortcode: [favorite_button post_id="" site_id=""]

Favorite Count (by Post)

Total favorites for each post are saved as a simple integer. If a user unfavorites a post, this count is updated. Anonymous users’ favorites count towards the total by default, but may be disabled via the plugin settings. The post id may be left blank in all cases if inside the loop.

  • Get function: get_favorites_count($post_id)
  • Print function: the_favorites_count($post_id)
  • Shortcode: [favorite_count post_id=""]

Favorite Count (by User)
Displays the total number of favorites a user has favorited. Template functions accept the same filters parameter as the user favorites functions.

  • Get function: get_user_favorites_count($user_id, $site_id, $filters)
  • Print function: the_user_favorites_count($user_id, $site_id, $filters)
  • Shortcode: [user_favorites user_id="" site_id="" post_types=""]

User Favorites

User favorites are stored as an array of post ids. Logged-in users’ favorites are stored as a custom user meta field, while anonymous users’ favorites are stored in either the session or browser cookie (configurable in the plugin settings). If the user id parameter is omitted, the favorites default to the current user. The site id parameter is optional, for use in multisite installations (defaults to current site).

  • Get function (returns array of IDs): get_user_favorites($user_id, $site_id)
  • Get function (returns html list): get_user_favorites_list($user_id, $site_id, $include_links, $filters, $include_button, $include_thumbnails = false, $thumbnail_size = 'thumbnail', $include_excerpt = false)
  • Print function (prints an html list): the_user_favorites_list($user_id, $site_id, $include_links, $filters, $include_button, $include_thumbnails = false, $thumbnail_size = 'thumbnail', $include_excerpt = false)
  • Shortcode (prints an html list, with the option of omitting links): `[user_favorites user_id=”” include_links=”true” site_id=”” include_buttons=”false” post_types=”post” include_thumbnails=”false” thumbnail_size=”thumbnail” include_excerpt=”false”]

List Users Who Have Favorited a Post

Display a list of users who have favorited a specific post. If the user id parameter is omitted, the favorites default to the current user. The site id parameter is optional, for use in multisite installations (defaults to current site). The get function returns an array of user objects.

  • Get function (returns array of User Objects): get_users_who_favorited_post($post_id, $site_id)
  • Print function (prints an html list): the_users_who_favorited_post($post_id = null, $site_id = null, $separator = 'list', $include_anonymous = true, $anonymous_label = 'Anonymous Users', $anonymous_label_single = 'Anonymous User')
  • Shortcode (prints an html list): `[post_favorites post_id=”” site_id=”” separator=”list” include_anonymous=”true” anonymous_label=”Anonymous Users” anonymous_label_single=”Anonymous User”]

Clear Favorites Button

Displays a button that allows users to clear all of their favorites.

  • Get function: get_clear_favorites_button($site_id, $text)
  • Print function: the_clear_favorites_button($site_id, $text)
  • Shortcode: `[clear_favorites_button site_id=”” text=”Clear Favorites”]

Favorite Count (Across all Posts)
Displays the total number of favorites for a given site.

  • Get function: get_total_favorites_count($site_id)
  • Print function: the_total_favorites_count($site_id)
DomainExposuresHeadersLast Checked
p*n*o*a*n*r.com (WP 7.0) F Jul 1, 2026
f*e*f*n*.c*m.au (WP 7.0) F Jul 1, 2026
p*o*a*t*a*a*t*.online (WP 7.0) F Jul 1, 2026
v*-*t*o*.pro F Jul 1, 2026
m*m*d*h*r*.info (WP 6.3.2) F Jul 1, 2026
c*m*o*n*c*.com D Jul 1, 2026
s*k*s*m*.net F Jul 1, 2026
g*n*t*c*i*e*a*k*.com F Jul 1, 2026
f*n*a*h*i*.com (WP 7.0) F Jul 1, 2026
f*n*t*o*a*m*v*m*n*c*u*.com F Jul 1, 2026
d*u*c*a*n*l*.com F Jul 1, 2026
d*u*c*a*n*l.com F Jul 1, 2026
w*l*d*r*-*m*o*i*i*n.de (WP 7.0) D Jul 1, 2026
d*u*-*h*n*e*.com F Jul 1, 2026
m*c*m*u*c*s*.com (WP 6.9.1) F Jul 1, 2026
m*c*s*o*e.com F Jul 1, 2026
w*l*i*g*i*w*u*e*.com F Jun 30, 2026
v*c*l*o*n*.net F Jun 30, 2026
s*j*s*p*s*e*r*i*g*e*t*e.ca (WP 6.7.2) D Jun 30, 2026
w*l*e*j*n*s*u*h*r*p*y*e*e.com F Jun 30, 2026
g*o*n*u*t*e*d*u*o.nl F Jun 30, 2026
w*l*a*o*t*v*n*s.com F Jun 30, 2026
e*t*e*u*d*v*l*.se F Jun 30, 2026
e*t*e*a*n*s*n*.se F Jun 30, 2026
s*d*c*r.c*.za F Jun 30, 2026
b*n*v*t*.pl F Jun 30, 2026
1*1*p*r*.de F Jun 30, 2026
s*u*c*a*l*.net (WP 5.4.19) F Jun 30, 2026
u*i*r*d*t*n*.lu (WP 6.9.1) C Jun 30, 2026
o*f*t*.es D Jun 30, 2026
w*k*u*g*a*e*u*.com C Jun 30, 2026
m*c*i*s*l*n.com F Jun 30, 2026
m*c*i*m*b*.com (WP 6.4.8) F Jun 30, 2026
g*n*x.com (WP 7.0) F Jun 30, 2026
v*i*e*i*d*r.io F Jun 30, 2026
g*n*i*o*u.com F Jun 30, 2026
g*t*h*r*t*w*s*.c*.uk A Jun 30, 2026
j*k*n*m.fr (WP 7.0) F Jun 30, 2026
g*d*m*n.net (WP 6.9.4) F Jun 30, 2026
p*l*y*n*b*o*.com F Jun 30, 2026
s*n*y*r*v*l*b*o*.com F Jun 30, 2026
b*l*m*v*s.com (WP 6.4.8) F Jun 30, 2026
m*p*w*e.mx F Jun 30, 2026
s*n*e*-*o*g*k*o*.com (WP 6.9) D Jun 30, 2026
m*n*r*g*r*c*f*y*e.es (WP 7.0) F Jun 30, 2026
y*m*t*o.jp D Jun 30, 2026
f*k*r*i*c*u*o*.com F Jun 30, 2026
j*m*y*e*v*n*.com (WP 6.2.2) F Jun 30, 2026
i*e*a*a.com F Jun 30, 2026
t*i*o*i*.immo (WP 7.0) F Jun 30, 2026
e*r*u*e*r*n*r*j*.nl F Jun 30, 2026
c*t*o*i*g*n*l*m*n*l*s.com F Jun 30, 2026
a*m*s*i*n*o*.com (WP 7.0) D Jun 30, 2026
a*s*l*g*z*e*e.ch F Jun 30, 2026
w*s*-*r*k.c*.nz (WP 6.9.4) F Jun 30, 2026
f*k*y*-*u*s*n.com (WP 5.9.13) F Jun 30, 2026
p*s*e*e.com (WP 6.9.4) D Jun 30, 2026
s*n*l*g.com F Jun 30, 2026
3*5*b*a*t*a*k.de F Jun 30, 2026
p*l*o*i*t*u.com (WP 7.0) C Jun 30, 2026
n*p*.al (WP 6.8.2) B Jun 30, 2026
s*p*r*.ge (WP 5.9.13) F Jun 30, 2026
p*s*j*p*.com F Jun 30, 2026
s*l*u*l*u*-*o*n*g.de (WP 6.7.5) D Jun 30, 2026
r*f*g*o*d*p*n*a*.pt C Jun 30, 2026
n*y*m*l*.com D Jun 30, 2026
g*m*o*a*y.pl (WP 7.0) D Jun 30, 2026
c*u*s*t*o*p*i*e*.fr (WP 6.8.5) F Jun 30, 2026
s*i*a*m*c*i*e.com (WP 7.0) F Jun 30, 2026
b*k*n*b*s*u*t.com (WP 6.6) F Jun 30, 2026
s*n*i*e*.com (WP 7.0) F Jun 30, 2026
s*i*i*u*o*k*.com (WP 7.0) F Jun 30, 2026
s*x*a*r*p*o*u*t*v*h*a*t*a*l*a*c*.o*g.au F Jun 30, 2026
1*0*b*e*t*k*n*.c*.uk F Jun 30, 2026
c*g*c*d*m*.com F Jun 30, 2026
p*s*-*v*n*a*e*-*e*o*-*t*a*t*q*e.com (WP 7.0) D Jun 30, 2026
f*t*f*.app F Jun 30, 2026
s*m*n*i*e*p*o.com F Jun 30, 2026
t*h*.nl (WP 7.0) F Jun 30, 2026
e*e*y*n*c*u*t*.live F Jun 30, 2026
s*n*i*e*o*a*i*n*.net (WP 6.8.5) B Jun 30, 2026
c*s*o*s*a*g*v*n*.com (WP 6.9.4) B Jun 30, 2026
s*l*p*o.fr (WP 6.8.5) F Jun 30, 2026
c*s*o*c*e*t*r*.com (WP 7.0) F Jun 30, 2026
s*a*e*r*c*p*s.club F Jun 30, 2026
v*v*-*e*i*n.ch C Jun 30, 2026
2*c*a*t.de C Jun 30, 2026
o*t*a*n*f*r*e*w*h*u*g*n*s*l*.de C Jun 30, 2026
f*r*e*h*u*-*a*z.eu (WP 7.0) D Jun 30, 2026
h*n*i*g*g*m*s.net F Jun 30, 2026
m*c*e*u.org F Jun 30, 2026
t*-*e*c*o.es (WP 7.0) F Jun 30, 2026
s*m*r*i*w*r*.com F Jun 30, 2026
m*n*-*a*r*t*l*.jp (WP 6.6.1) F Jun 30, 2026
p*p*r*z*i.fi (WP 6.7.5) F Jun 30, 2026
c*s*e*l*n*y*l*n*.com (WP 6.9.4) A Jun 30, 2026
p*r*y*e*p*e*v.com F Jun 30, 2026
f*h*s*u*i*.ir (WP 6.5.8) F Jun 30, 2026
c*a*m*b*i*a*.nl F Jun 30, 2026
k*-*a*.jp (WP 6.4.8) F Jun 30, 2026

Top 50 Plugins

Plugin Count
elementor 1,770,342
contact-form-7 1,750,915
elementor-pro 1,052,644
woocommerce 816,483
revslider 608,510
jetpack 454,420
js_composer 419,725
wp-rocket 342,266
essential-addons-for-elementor-lite 264,611
gravityforms 257,031
complianz-gdpr 257,016
google-site-kit 232,607
cookie-law-info 228,155
instagram-feed 224,607
sitepress-multilingual-cms 210,587
header-footer-elementor 206,506
google-analytics-for-wordpress 205,459
bluehost-wordpress-plugin 192,302
elementskit-lite 179,973
gutenberg 167,201
cookie-notice 148,778
litespeed-cache 144,156
gtranslate 124,739
wpforms-lite 123,682
the-events-calendar 122,284
astra-sites 113,047
popup-maker 109,572
woocommerce-payments 109,182
gutenberg-core 103,126
tablepress 102,385
honeypot 97,718
astra-addon 93,722
wp-smushit 90,758
duracelltomi-google-tag-manager 90,301
layerslider 89,210
all-in-one-seo-pack 89,010
bb-plugin 86,794
coblocks 86,593
akismet 84,953
premium-addons-for-elementor 84,325
cleantalk-spam-protect 82,484
ml-slider 82,220
mailchimp-for-wp 81,704
megamenu 80,173
woocommerce-gateway-stripe 79,380
jet-engine 78,032
fusion-builder 77,009
ewww-image-optimizer 76,700
wp-pagenavi 76,449
smart-slider-3 76,095

Top 50 Themes

Theme Count
hello-elementor 620,730
Divi 495,621
astra 413,779
flatsome 138,511
Avada 120,930
generatepress 114,754
oceanwp 80,295
kadence 78,796
pub 72,272
enfold 68,702
salient 65,121
twentyseventeen 54,278
bb-theme 53,318
betheme 52,418
twentytwentyfour 52,156
blocksy 50,809
cocoon-master 49,207
dt-the7 45,418
twentytwentyfive 44,964
woodmart 43,625
neve 38,090
Avada-Child-Theme 36,893
gox 36,252
h4 36,037
bridge 31,289
twentytwentyone 30,266
lightning 29,956
twentytwenty 28,736
swell 27,987
bricks 26,481
Impreza 26,080
Newspaper 24,196
twentytwentythree 22,096
epik-redesign 19,111
twentytwentytwo 18,764
uncode 18,484
pro 17,626
twentysixteen 17,600
sydney 16,483
storefront 16,300
Total 14,372
hello-theme-child-master 14,018
factory-templates-4 13,729
themify-ultra 12,943
extendable 12,726
hestia 12,588
yootheme 12,493
yith-wonder 12,085
porto 11,938
twentyfifteen 11,857