{"id":416449,"date":"2026-11-29T04:23:52","date_gmt":"2026-11-29T04:23:52","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/heartlist\/"},"modified":"2026-11-29T05:31:22","modified_gmt":"2026-11-29T05:31:22","slug":"heartlist","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/heartlist\/","author":21062601,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.1","stable_tag":"1.0.1","tested":"7.1.5","requires":"6.5","requires_php":"7.4","requires_plugins":null,"header_name":"Heartlist \u2013 Wishlist for WooCommerce","header_author":"ianbaysa","header_description":"A fast, lightweight wishlist for WooCommerce. No crawlable wishlist links, no jQuery, works with classic and block themes.","last_updated":"2026-11-29 05:31:22","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wordpress.org\/plugins\/heartlist\/","header_author_uri":"https:\/\/profiles.wordpress.org\/ianbaysa\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":43,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"ianbaysa","date":"2026-11-29 05:22:25","revision":3832438},"1.0.1":{"tag":"1.0.1","author":"ianbaysa","date":"2026-11-29 05:31:22","revision":3832442}},"upgrade_notice":{"1.0.1":"<p>Layout fixes for block themes.<\/p>","1.0.0":"<p>First release.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3832403,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3832403,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256},"icon.svg":{"filename":"icon.svg","revision":3832403,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3832403,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3832403,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{"blueprint.json":{"filename":"blueprint.json","revision":3832442,"resolution":false,"location":"assets","locale":"","contents":"{\"$schema\":\"https:\\\/\\\/playground.wordpress.net\\\/blueprint-schema.json\",\"landingPage\":\"\\\/\",\"login\":true,\"preferredVersions\":{\"php\":\"8.2\",\"wp\":\"latest\"},\"features\":{\"networking\":true},\"steps\":[{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"woocommerce\"},\"options\":{\"activate\":true}},{\"step\":\"installPlugin\",\"pluginData\":{\"resource\":\"wordpress.org\\\/plugins\",\"slug\":\"heartlist\"},\"options\":{\"activate\":true}},{\"step\":\"runPHP\",\"code\":\"<?php\\n\\\/\\\/ Demo store for Heartlist screenshots and the WordPress.org Live Preview.\\n\\\/\\\/ Creates a few products with simple drawn images (PHP GD) and a header wishlist link.\\nrequire '\\\/wordpress\\\/wp-load.php';\\nrequire_once ABSPATH . 'wp-admin\\\/includes\\\/image.php';\\n\\nupdate_option( 'woocommerce_onboarding_profile', array( 'skipped' => true ) );\\nupdate_option( 'woocommerce_coming_soon', 'no' );\\nupdate_option( 'woocommerce_store_pages_only', 'no' );\\nupdate_option( 'woocommerce_currency', 'USD' );\\nupdate_option( 'blogname', 'Demo Store' );\\nupdate_option( 'blogdescription', 'Heartlist wishlist demo' );\\n\\nfunction hl_demo_image( $slug, $bg, $fg, $shape ) {\\n\\t$w  = 800;\\n\\t$im = imagecreatetruecolor( $w, $w );\\n\\timageantialias( $im, true );\\n\\t$c = function ( $hex ) use ( $im ) {\\n\\t\\treturn imagecolorallocate( $im, hexdec( substr( $hex, 0, 2 ) ), hexdec( substr( $hex, 2, 2 ) ), hexdec( substr( $hex, 4, 2 ) ) );\\n\\t};\\n\\t$bgc = $c( $bg );\\n\\t$fgc = $c( $fg );\\n\\t$dk  = $c( '333333' );\\n\\timagefilledrectangle( $im, 0, 0, $w, $w, $bgc );\\n\\tswitch ( $shape ) {\\n\\t\\tcase 'mug':\\n\\t\\t\\timagefilledrectangle( $im, 250, 260, 520, 600, $fgc );\\n\\t\\t\\timagesetthickness( $im, 40 );\\n\\t\\t\\timagearc( $im, 540, 430, 170, 200, 270, 90, $fgc );\\n\\t\\t\\timagefilledellipse( $im, 385, 260, 270, 50, $c( 'ffffff' ) );\\n\\t\\t\\tbreak;\\n\\t\\tcase 'lamp':\\n\\t\\t\\timagefilledpolygon( $im, array( 280, 380, 520, 380, 460, 200, 340, 200 ), $fgc );\\n\\t\\t\\timagefilledrectangle( $im, 390, 380, 410, 590, $dk );\\n\\t\\t\\timagefilledellipse( $im, 400, 600, 220, 40, $dk );\\n\\t\\t\\tbreak;\\n\\t\\tcase 'scarf':\\n\\t\\t\\timagefilledrectangle( $im, 200, 250, 600, 360, $fgc );\\n\\t\\t\\timagefilledrectangle( $im, 450, 250, 540, 620, $fgc );\\n\\t\\t\\tfor ( $x = 455; $x < 540; $x += 18 ) {\\n\\t\\t\\t\\timagefilledrectangle( $im, $x, 620, $x + 8, 660, $fgc );\\n\\t\\t\\t}\\n\\t\\t\\tbreak;\\n\\t\\tcase 'hoodie':\\n\\t\\t\\timagefilledpolygon( $im, array( 300, 250, 500, 250, 620, 380, 560, 420, 540, 380, 540, 620, 260, 620, 260, 380, 240, 420, 180, 380 ), $fgc );\\n\\t\\t\\timagefilledellipse( $im, 400, 250, 160, 90, $bgc );\\n\\t\\t\\tbreak;\\n\\t\\tcase 'plant':\\n\\t\\t\\timagefilledpolygon( $im, array( 310, 450, 490, 450, 460, 620, 340, 620 ), $c( 'c0703f' ) );\\n\\t\\t\\timagefilledellipse( $im, 340, 360, 120, 200, $fgc );\\n\\t\\t\\timagefilledellipse( $im, 460, 360, 120, 200, $fgc );\\n\\t\\t\\timagefilledellipse( $im, 400, 300, 120, 240, $fgc );\\n\\t\\t\\tbreak;\\n\\t\\tdefault: \\\/\\\/ bag\\n\\t\\t\\timagefilledrectangle( $im, 250, 330, 550, 620, $fgc );\\n\\t\\t\\timagesetthickness( $im, 22 );\\n\\t\\t\\timagearc( $im, 400, 330, 180, 200, 180, 360, $dk );\\n\\t}\\n\\t$up   = wp_upload_dir();\\n\\t$file = $up['path'] . '\\\/' . $slug . '.png';\\n\\timagepng( $im, $file );\\n\\timagedestroy( $im );\\n\\t$id = wp_insert_attachment( array( 'post_mime_type' => 'image\\\/png', 'post_title' => $slug, 'post_status' => 'inherit' ), $file );\\n\\twp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );\\n\\treturn $id;\\n}\\n\\n$products = array(\\n\\tarray( 'Ceramic Mug', 18, 'fde2e4', 'e5677c', 'mug', 'A sturdy stoneware mug for slow mornings.' ),\\n\\tarray( 'Wool Scarf', 42, 'e2ecf9', '4a78c2', 'scarf', 'Soft merino scarf, warm without the itch.' ),\\n\\tarray( 'Desk Lamp', 65, 'fff4d6', 'e0a526', 'lamp', 'Warm light for late work and good books.' ),\\n\\tarray( 'Cotton Hoodie', 55, 'e3f4ea', '3e9a66', 'hoodie', 'Heavyweight organic cotton, relaxed fit.' ),\\n\\tarray( 'House Plant', 29, 'eef6e1', '5c9e3a', 'plant', 'Easy-care plant in a terracotta pot.' ),\\n\\tarray( 'Canvas Tote', 24, 'f1e8f8', '8a5cc2', 'bag', 'Roomy tote for groceries and everything else.' ),\\n);\\nforeach ( $products as $p ) {\\n\\t$x = new WC_Product_Simple();\\n\\t$x->set_name( $p[0] );\\n\\t$x->set_regular_price( $p[1] );\\n\\t$x->set_short_description( $p[5] );\\n\\t$x->set_description( $p[5] );\\n\\t$x->set_status( 'publish' );\\n\\t$x->set_manage_stock( true );\\n\\t$x->set_stock_quantity( 12 );\\n\\t$x->set_image_id( hl_demo_image( sanitize_title( $p[0] ), $p[2], $p[3], $p[4] ) );\\n\\t$x->save();\\n}\\n\\n\\\/\\\/ Pre-fill the admin's wishlist so the wishlist page is not empty in the demo.\\n$ids = wc_get_products( array( 'limit' => 3, 'return' => 'ids', 'orderby' => 'date', 'order' => 'ASC' ) );\\nupdate_user_meta( 1, '_heartlist_items', $ids );\\n\\n\\\/\\\/ Put the shop on the front page so the preview opens on products.\\nupdate_option( 'show_on_front', 'page' );\\nupdate_option( 'page_on_front', wc_get_page_id( 'shop' ) );\\nflush_rewrite_rules();\\n\"}]}"}},"all_blocks":{"heartlist\/button":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"heartlist\/button","title":"Wishlist Button","category":"widgets","icon":"heart","description":"A heart button that saves the current product to the shopper's wishlist (Heartlist).","keywords":["wishlist","favorite","heart"],"textdomain":"heartlist","usesContext":["postId","postType"],"supports":{"html":false},"editorScript":"file:.\/index.js","render":"file:.\/render.php"},"heartlist\/wishlist":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"heartlist\/wishlist","title":"Wishlist","category":"widgets","icon":"heart","description":"Shows the shopper's wishlist (Heartlist).","keywords":["wishlist","favorites","save for later"],"textdomain":"heartlist","supports":{"html":false,"multiple":false},"editorScript":"file:.\/index.js","render":"file:.\/render.php"}},"tagged_versions":["1.0.0","1.0.1"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3832442,"resolution":"1","location":"assets","locale":"","width":1280,"height":720},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3832442,"resolution":"2","location":"assets","locale":"","width":1280,"height":840},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3832438,"resolution":"3","location":"assets","locale":"","width":1280,"height":720},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3832438,"resolution":"4","location":"assets","locale":"","width":1280,"height":800}},"screenshots":{"1":"The heart button on a product page. One click saves the product, no page reload.","2":"Hearts in the shop grid, so shoppers can save straight from category pages.","3":"The wishlist page: price, stock, add to cart and remove.","4":"Settings under WooCommerce \u2192 Heartlist."}},"plugin_section":[],"plugin_tags":[3464,73318,1666,286,45315],"plugin_category":[45],"plugin_contributors":[296240],"plugin_business_model":[],"class_list":["post-416449","plugin","type-plugin","status-publish","hentry","plugin_tags-favorites","plugin_tags-save-for-later","plugin_tags-wishlist","plugin_tags-woocommerce","plugin_tags-woocommerce-wishlist","plugin_category-ecommerce","plugin_contributors-ianbaysa","plugin_committers-ianbaysa"],"banners":{"banner":"https:\/\/ps.w.org\/heartlist\/assets\/banner-772x250.png?rev=3832403","banner_2x":"https:\/\/ps.w.org\/heartlist\/assets\/banner-1544x500.png?rev=3832403","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/heartlist\/assets\/icon.svg?rev=3832403","icon":"https:\/\/ps.w.org\/heartlist\/assets\/icon.svg?rev=3832403","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/heartlist\/assets\/screenshot-1.png?rev=3832442","caption":"The heart button on a product page. One click saves the product, no page reload."},{"src":"https:\/\/ps.w.org\/heartlist\/assets\/screenshot-2.png?rev=3832442","caption":"Hearts in the shop grid, so shoppers can save straight from category pages."},{"src":"https:\/\/ps.w.org\/heartlist\/assets\/screenshot-3.png?rev=3832438","caption":"The wishlist page: price, stock, add to cart and remove."},{"src":"https:\/\/ps.w.org\/heartlist\/assets\/screenshot-4.png?rev=3832438","caption":"Settings under WooCommerce \u2192 Heartlist."}],"raw_content":"<!--section=description-->\n<p>Heartlist is a free WooCommerce wishlist plugin. It adds a heart button to your products so shoppers can save them for later, and a wishlist page where they can find them again and add them to the cart. Guests can use it without an account.<\/p>\n\n<p>Try it first: click <strong>Live Preview<\/strong> above to open a demo store with Heartlist already set up.<\/p>\n\n<p>It is built to stay out of your way:<\/p>\n\n<ul>\n<li><strong>No bot traffic or SEO clutter.<\/strong> Saving a product is a background request, never a link with a query string. Bots and search engines have nothing to crawl, so they can't flood your server or fill your Search Console with junk URLs.<\/li>\n<li><strong>Light.<\/strong> One small script (no jQuery) and one small stylesheet, loaded only where a heart or the wishlist appears.<\/li>\n<li><strong>Works with caching.<\/strong> The heart state is filled in by the browser, so it stays correct on cached pages. The wishlist page itself is never cached and never indexed.<\/li>\n<li><strong>Works with your theme.<\/strong> Classic WooCommerce hooks, block-theme product grids, two blocks and three shortcodes, so you can place the heart anywhere, including page builders.<\/li>\n<\/ul>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Heart button on product pages (three positions) and in shop\/category grids (icon only or with text)<\/li>\n<li>Wishlist page created automatically on activation<\/li>\n<li>Guests can save products without an account (stored in a cookie with product IDs only); the list moves into their account when they log in<\/li>\n<li>Remove items, add to cart, see price and stock at a glance<\/li>\n<li>Logged-in shoppers get a private share link for their list<\/li>\n<li>\"Wishlist\" and \"Wishlist Button\" blocks<\/li>\n<li>Shortcodes: <code>[heartlist]<\/code>, <code>[heartlist_button]<\/code>, <code>[heartlist_button id=\"123\"]<\/code>, <code>[heartlist_count]<\/code><\/li>\n<li>Custom button text<\/li>\n<li>Accessible: real buttons, keyboard friendly, screen reader announcements<\/li>\n<li>Privacy: suggested policy text, plus support for WordPress's personal data export and erase tools<\/li>\n<li>Compatible with WooCommerce High-Performance Order Storage<\/li>\n<\/ul>\n\n<h4>Heartlist Pro<\/h4>\n\n<p>Want the wishlist to bring in sales? <a href=\"https:\/\/heartlist-pro.netlify.app\/\">Heartlist Pro<\/a> is an optional paid add-on:<\/p>\n\n<ul>\n<li>Price-drop and back-in-stock emails to shoppers who wished for a product, guests included<\/li>\n<li>Multiple named wishlists per shopper, each with its own share link<\/li>\n<li>A \"most wished for\" report so you know what to restock or discount<\/li>\n<\/ul>\n\n<p>The free plugin is complete on its own and never nags you to upgrade.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install and activate WooCommerce.<\/li>\n<li>Go to Plugins \u2192 Add New, search for \"Heartlist\", install and activate it. (Or upload the zip under Plugins \u2192 Add New \u2192 Upload Plugin.)<\/li>\n<li>A \"Wishlist\" page is created for you. Visit WooCommerce \u2192 Heartlist to change the page, button position and text.<\/li>\n<li>Optional: add <code>[heartlist_count]<\/code> to your header so shoppers can find their list.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"the%20heart%20doesn%27t%20show%20on%20my%20product%20page.\"><h3>The heart doesn't show on my product page.<\/h3><\/dt>\n<dd><p>Some themes and page builders replace WooCommerce's standard product layout. Add the \"Wishlist Button\" block to your product template, or the <code>[heartlist_button]<\/code> shortcode to your product layout.<\/p><\/dd>\n<dt id=\"does%20it%20work%20with%20page%20caching%3F\"><h3>Does it work with page caching?<\/h3><\/dt>\n<dd><p>Yes. Cached pages show the right heart state because it is filled in by the browser after the page loads. The wishlist page sends no-cache headers and sets DONOTCACHEPAGE for caching plugins.<\/p><\/dd>\n<dt id=\"do%20guests%20need%20an%20account%3F\"><h3>Do guests need an account?<\/h3><\/dt>\n<dd><p>No. A guest's list is stored in a cookie (product IDs only) for 30 days. When the guest logs in, the list is merged into their account.<\/p><\/dd>\n<dt id=\"will%20it%20create%20indexable%20urls%3F\"><h3>Will it create indexable URLs?<\/h3><\/dt>\n<dd><p>No. Saving and removing happen through POST requests to the REST API, never through links. The wishlist page is marked noindex.<\/p><\/dd>\n<dt id=\"what%20happens%20to%20data%20when%20i%20delete%20the%20plugin%3F\"><h3>What happens to data when I delete the plugin?<\/h3><\/dt>\n<dd><p>Deleting the plugin from the Plugins screen removes its settings and all saved wishlists. The wishlist page is left in place because it's your content; delete it yourself if you no longer need it.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>Fix: on block themes the product-page heart button no longer stretches across the add-to-cart row.<\/li>\n<li>Fix: in block product grids the heart now lines up with the Add to cart button.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"WooCommerce wishlist with a heart button: shoppers save products for later, guests included. Fast, no jQuery, no junk URLs.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/416449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=416449"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/ianbaysa"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=416449"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=416449"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=416449"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=416449"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=416449"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=416449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}