{"id":27,"date":"2018-03-06T14:11:02","date_gmt":"2018-03-06T14:11:02","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist-new\/?p=27"},"modified":"2024-10-11T11:24:50","modified_gmt":"2024-10-11T11:24:50","slug":"shortcodes","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/","title":{"rendered":"Shortcodes"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">YITH Add to Wishlist<\/h3>\n\n\n\n<p>The shortcode\u00a0<strong>[yith_wcwl_add_to_wishlist]<\/strong>\u00a0loads the content of the \u201cadd-to-wishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of the plugin), and prints the \u201cAdd To Wishlist\u201d button in the front end.<\/p>\n\n\n\n<p>Shortcode attributes are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u2018wishlist_url\u2019<\/strong>: (string) the URL of the page that contains the wishlist; it is showed only if the product is already in the wishlist.<\/li>\n\n\n\n<li><strong>\u2018product_id\u2019<\/strong>: (int) the ID of the product to add to the wishlist with the button.<\/li>\n\n\n\n<li><strong>\u2018label\u2019<\/strong>: (string) the label to show inside the button.<\/li>\n\n\n\n<li><strong>\u2018browse_wishlist_text\u2019<\/strong>: (string) the label of the button that redirects to the wishlist. This is showed when the product is already in the wishlist.<\/li>\n\n\n\n<li><strong>\u2018already_in_wishslist_text\u2019<\/strong>: (string) the label showed when the product is already in the wishlist.<\/li>\n\n\n\n<li><strong>\u2018product_added_text\u2019<\/strong>: (string) the \u201cproduct added\u201d label, which is showed when a product is added to the wishlist.<\/li>\n\n\n\n<li><strong>\u2018icon\u2019<\/strong>: (string) the icon to show in the button (selected among the ones of font-awesome).<\/li>\n\n\n\n<li><strong>\u2018link_classes\u2019<\/strong>: (string) possible classes that can be added to the button. If it is a real button, the default class is \u201cadd_to_wishlist single_add_to_wishlist button alt\u201d, if on the contrary is plain text, the default class is \u201cadd_to_wishlist\u201d.<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">YITH Wishlist Table<\/h4>\n\n\n\n<p>Shortcode\u00a0<strong>[yith_wcwl_wishlist]<\/strong> loads the content of the \u201cwishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of the plugin), to make appear the wishlist in the page.<br>Shortcode parameters are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u2018per_page\u2019<\/strong>: (int) the number of elements per page (the default value is 5)<\/li>\n\n\n\n<li><strong>\u2018pagination\u2019<\/strong>: (string: yes\/no) it sets whether to paginate the wishlist; in case this parameter is set to \u201cno\u201d, the attribute \u201cper page\u201d will not be considered<\/li>\n\n\n\n<li><strong>\u2018wishlist_id\u2019<\/strong>: (int) ID of the wishlist to show; the system will automatically choose which wishlist to show if no ID is specified<\/li>\n\n\n\n<li><strong>\u2018action_params\u2019<\/strong>: (string) used to alter the output of the shortcode; shouldn\u2019t be used normally<\/li>\n\n\n\n<li><strong>\u2018no_interactions\u2019<\/strong>: (string: yes\/no) \u201cyes\u201d disables any interactive element of the wishlist<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>YITH Add to Wishlist The shortcode\u00a0[yith_wcwl_add_to_wishlist]\u00a0loads the content of the \u201cadd-to-wishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of the plugin), and prints the \u201cAdd To Wishlist\u201d button in the front end. Shortcode attributes are: YITH Wishlist Table Shortcode\u00a0[yith_wcwl_wishlist] loads the content of the \u201cwishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Shortcodes<\/span><\/a><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","hentry","category-free-settings"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.8.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YITH Wishlist: Shortcodes<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YITH Wishlist: Shortcodes\" \/>\n<meta property=\"og:description\" content=\"YITH Add to Wishlist The shortcode\u00a0[yith_wcwl_add_to_wishlist]\u00a0loads the content of the \u201cadd-to-wishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of the plugin), and prints the \u201cAdd To Wishlist\u201d button in the front end. Shortcode attributes are: YITH Wishlist Table Shortcode\u00a0[yith_wcwl_wishlist] loads the content of the \u201cwishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of &hellip; Continue reading Shortcodes\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Wishlist\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-06T14:11:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-11T11:24:50+00:00\" \/>\n<meta name=\"author\" content=\"Alessio Torrisi\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alessio Torrisi\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/\",\"name\":\"YITH Wishlist: Shortcodes\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#website\"},\"datePublished\":\"2018-03-06T14:11:02+00:00\",\"dateModified\":\"2024-10-11T11:24:50+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Shortcodes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#website\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/\",\"name\":\"YITH WooCommerce Wishlist\",\"description\":\"Plugin documentation\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\",\"name\":\"Alessio Torrisi\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g\",\"caption\":\"Alessio Torrisi\"},\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/author\/alessio\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YITH Wishlist: Shortcodes","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/","og_locale":"en_US","og_type":"article","og_title":"YITH Wishlist: Shortcodes","og_description":"YITH Add to Wishlist The shortcode\u00a0[yith_wcwl_add_to_wishlist]\u00a0loads the content of the \u201cadd-to-wishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of the plugin), and prints the \u201cAdd To Wishlist\u201d button in the front end. Shortcode attributes are: YITH Wishlist Table Shortcode\u00a0[yith_wcwl_wishlist] loads the content of the \u201cwishlist.php\u201d template (the file is in the \u201ctemplates\u201d folder of &hellip; Continue reading Shortcodes","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/","og_site_name":"YITH WooCommerce Wishlist","article_published_time":"2018-03-06T14:11:02+00:00","article_modified_time":"2024-10-11T11:24:50+00:00","author":"Alessio Torrisi","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alessio Torrisi","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/","name":"YITH Wishlist: Shortcodes","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#website"},"datePublished":"2018-03-06T14:11:02+00:00","dateModified":"2024-10-11T11:24:50+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/free-settings\/shortcodes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/"},{"@type":"ListItem","position":2,"name":"Shortcodes"}]},{"@type":"WebSite","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#website","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/","name":"YITH WooCommerce Wishlist","description":"Plugin documentation","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5","name":"Alessio Torrisi","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1dc305ade0adaba279202977d3352276?s=96&d=mm&r=g","caption":"Alessio Torrisi"},"url":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/author\/alessio\/"}]}},"_links":{"self":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":5,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":1625,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/posts\/27\/revisions\/1625"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}