{"id":5479798,"date":"2014-11-14T02:28:42","date_gmt":"2014-11-14T02:28:42","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/hyperlink-in-woocommerce-availability-text\/"},"modified":"2016-08-22T12:34:07","modified_gmt":"2016-08-22T12:34:07","slug":"hyperlink-in-woocommerce-availability-text","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/hyperlink-in-woocommerce-availability-text\/","title":{"rendered":"Hyperlink in WoOCommerce Availability Text"},"content":{"rendered":"<p>Hi<br \/>\nI have managed to change the &#8216;Sold Out&#8217; text in my WooCommerce pages but now I&#8217;d like to add a hyperlink to that text:<\/p>\n<pre><code>\/\/change text &quot;Out of Stock&#039; to &#039;SOLD OUT&#039;\n    if ( !$_product-&gt;is_in_stock() ) $availability[&#039;availability&#039;] = __(&#039;Custom Order Available. Please EMAIL US for further info&#039;, &#039;woocommerce&#039;);\n        return $availability;<\/code><\/pre>\n<p>I&#8217;d like the EMAIL US to link to our contact page. I&#8217;ve tried a href and echo but they&#8217;re incompatible.<\/p>\n<p>Is this possible?<\/p>\n","protected":false},"template":"","class_list":["post-5479798","topic","type-topic","status-closed","hentry","topic-tag-hyperlink","topic-tag-php"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5479798","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\/5479798\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5479798"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}