{"id":71,"date":"2018-03-06T14:26:42","date_gmt":"2018-03-06T14:26:42","guid":{"rendered":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist-new\/?p=71"},"modified":"2019-11-22T16:01:45","modified_gmt":"2019-11-22T16:01:45","slug":"shortcodes-2","status":"publish","type":"post","link":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/","title":{"rendered":"Shortcodes"},"content":{"rendered":"<h3>YITH Add to Wishlist<\/h3>\n<p>The shortcode <b>&#8220;[yith_wcwl_add_to_wishlist]&#8221;<\/b> loads the content of the &#8220;add-to-wishlist.php&#8221; template (the file is in the &#8220;templates&#8221; folder of the plugin), and prints the &#8220;Add To Wishlist&#8221; button in the front end.<br \/>\nShortcode attributes are:<\/p>\n<ul>\n<li><b>&#8216;wishlist_url&#8217;<\/b>: (string) the URL of the page that contains the wishlist; it is showed only if the product is already in the wishlist.<\/li>\n<li><b>&#8216;exists&#8217;<\/b>: (boolean) it states if the product is already in the wishlist.<\/li>\n<li><b>&#8216;product_id&#8217;<\/b>: (int) the ID of the product to add to the wishlist with the button.<\/li>\n<li><b>&#8216;product_type&#8217;<\/b>: (string) it can take the values <i>simple<\/i>, <i>variable<\/i> or <i>grouped<\/i> depending on the product type (the default value is <i>simple<\/i>).<\/li>\n<li><b>&#8216;label&#8217;<\/b>: (string) the label to show inside the button.<\/li>\n<li><b>&#8216;browse_wishlist_text&#8217;<\/b>: (string) the label of the button that redirects to the wishlist. This is showed when the product is already in the wishlist.<\/li>\n<li><b>&#8216;already_in_wishslist_text&#8217;<\/b>: (string) the label showed when the product is already in the wishlist.<\/li>\n<li><b>&#8216;product_added_text&#8217;<\/b>: (string) the &#8220;product added&#8221; label, which is showed when a product is added to the wishlist.<\/li>\n<li><b>&#8216;icon&#8217;<\/b>: (string) the icon to show in the button (selected among the ones of font-awesome).<\/li>\n<li><b>&#8216;link_classes&#8217;<\/b>: (string) possible classes that can be added to the button. If it is a real button, the default class is &#8220;add_to_wishlist single_add_to_wishlist button alt&#8221;, if on the contrary is plain text, the default class is &#8220;add_to_wishlist&#8221;.&#8221;<\/li>\n<li><b>&#8216;available_multi_wishlist&#8217;<\/b>: (boolean) it states whether the multiwishlist feature is enabled.<\/li>\n<\/ul>\n<h3>YITH Wishlist Table<\/h3>\n<p>Shortcode <b>&#8220;[yith_wcwl_wishlist]&#8221;<\/b> loads the content of the &#8220;wishlist.php&#8221; template (the file is in the &#8220;templates&#8221; folder of the plugin), to make appear the wishlist in the page.<br \/>\nShortcode parameters are:<\/p>\n<ul>\n<li><b>&#8216;per_page&#8217;<\/b>: (int) the number of elements per page (the default value is 5)<\/li>\n<li><b>&#8216;pagination&#8217;<\/b>: (string: yes\/no) it sets whether to paginate the wishlist; in case this parameter is set to &#8220;no&#8221;, the attribute &#8220;per page&#8221; will not be considered<\/li>\n<li><span style=\"font-weight: 400;\"><strong>&#8216;wishlist_id&#8217;<\/strong>: (int) ID of the wishlist to show; the system will automatically choose which wishlist to show if no ID is specified<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>&#8216;action_params&#8217;<\/strong>: (string) used to alter the output of the shortcode; shouldn\u2019t be used normally<\/span><\/li>\n<li><span style=\"font-weight: 400;\"><strong>&#8216;no_interactions&#8217;<\/strong>: (string: yes\/no) &#8220;yes&#8221; disables any interactive element of the wishlist<\/span><\/li>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>YITH Add to Wishlist The shortcode &#8220;[yith_wcwl_add_to_wishlist]&#8221; loads the content of the &#8220;add-to-wishlist.php&#8221; template (the file is in the &#8220;templates&#8221; folder of the plugin), and prints the &#8220;Add To Wishlist&#8221; button in the front end. Shortcode attributes are: &#8216;wishlist_url&#8217;: (string) the URL of the page that contains the wishlist; it is showed only if the &hellip; <a href=\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/\" 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":[4],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-premium-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\/premium-settings\/shortcodes-2\/\" \/>\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 &#8220;[yith_wcwl_add_to_wishlist]&#8221; loads the content of the &#8220;add-to-wishlist.php&#8221; template (the file is in the &#8220;templates&#8221; folder of the plugin), and prints the &#8220;Add To Wishlist&#8221; button in the front end. Shortcode attributes are: &#8216;wishlist_url&#8217;: (string) the URL of the page that contains the wishlist; it is showed only if the &hellip; Continue reading Shortcodes\" \/>\n<meta property=\"og:url\" content=\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/\" \/>\n<meta property=\"og:site_name\" content=\"YITH WooCommerce Wishlist\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-06T14:26:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-22T16:01:45+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\/premium-settings\/shortcodes-2\/\",\"url\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/\",\"name\":\"YITH Wishlist: Shortcodes\",\"isPartOf\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#website\"},\"datePublished\":\"2018-03-06T14:26:42+00:00\",\"dateModified\":\"2019-11-22T16:01:45+00:00\",\"author\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5\"},\"breadcrumb\":{\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/#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\/premium-settings\/shortcodes-2\/","og_locale":"en_US","og_type":"article","og_title":"YITH Wishlist: Shortcodes","og_description":"YITH Add to Wishlist The shortcode &#8220;[yith_wcwl_add_to_wishlist]&#8221; loads the content of the &#8220;add-to-wishlist.php&#8221; template (the file is in the &#8220;templates&#8221; folder of the plugin), and prints the &#8220;Add To Wishlist&#8221; button in the front end. Shortcode attributes are: &#8216;wishlist_url&#8217;: (string) the URL of the page that contains the wishlist; it is showed only if the &hellip; Continue reading Shortcodes","og_url":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/","og_site_name":"YITH WooCommerce Wishlist","article_published_time":"2018-03-06T14:26:42+00:00","article_modified_time":"2019-11-22T16:01:45+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\/premium-settings\/shortcodes-2\/","url":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/","name":"YITH Wishlist: Shortcodes","isPartOf":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#website"},"datePublished":"2018-03-06T14:26:42+00:00","dateModified":"2019-11-22T16:01:45+00:00","author":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/#\/schema\/person\/cb8b9dbb75e34f325cc8329424e6a6c5"},"breadcrumb":{"@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/premium-settings\/shortcodes-2\/#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\/71","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=71"}],"version-history":[{"count":3,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":258,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/posts\/71\/revisions\/258"}],"wp:attachment":[{"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.yithemes.com\/yith-woocommerce-wishlist\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}