{"id":55164,"date":"2022-05-05T19:54:23","date_gmt":"2022-05-05T17:54:23","guid":{"rendered":"https:\/\/samuelchopard.ch\/wiki\/?p=55164"},"modified":"2022-05-05T19:54:23","modified_gmt":"2022-05-05T17:54:23","slug":"how-to-remove-related-products-from-product-pages","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/how-to-remove-related-products-from-product-pages\/","title":{"rendered":"How to remove related products from product pages"},"content":{"rendered":"<p><!--more--><br \/>\nPaste the following code in child-theme&#8217;s functions.php:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"php\">\r\n\/* Remove related products from product pages *\/\r\nremove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );<\/pre>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/quadlayers.com\/hide-and-remove-related-products-in-woocommerce\/\">https:\/\/quadlayers.com\/hide-and-remove-related-products-in-woocommerce\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Paste the following code in child-theme's functions.php: \/* Remove related products from product pages *\/ remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 ); [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[402,401,327],"class_list":["post-55164","post","type-post","status-publish","format-standard","hentry","category-woocommerce","tag-product-page","tag-related-produtct","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/55164","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=55164"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/55164\/revisions"}],"predecessor-version":[{"id":55165,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/55164\/revisions\/55165"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=55164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=55164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=55164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}