{"id":17299529,"date":"2023-12-24T13:48:10","date_gmt":"2023-12-24T13:48:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/something-went-wront-for-simple-snippet\/"},"modified":"2023-12-24T13:48:10","modified_gmt":"2023-12-24T13:48:10","slug":"something-went-wront-for-simple-snippet","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/something-went-wront-for-simple-snippet\/","title":{"rendered":"Something went wront for simple snippet"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hello there,<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Testing your plugin  (Currently using code snippets)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I tried several snippets and they work well, but a simple one doesn&#8217;t &amp; gives me the error : Something went wrong.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It&#8217;s the remove Woocommerce message &#8220;Item has been added to cart<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I currently use this :<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">add_filter( &#8216;wc_add_to_cart_message_html&#8217;, &#8216;__return_false&#8217; );<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PS: I&#8217;ve been using this for months now. Any idea what went wrong ?<\/p>\n","protected":false},"template":"","class_list":["post-17299529","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17299529","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/17299529\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=17299529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}