{"id":54439,"date":"2017-08-28T16:44:54","date_gmt":"2017-08-28T19:44:54","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=54439"},"modified":"2019-03-18T14:29:20","modified_gmt":"2019-03-18T13:29:20","slug":"remplace-free-with-call-for-price-when-price-if-left-blank","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/remplace-free-with-call-for-price-when-price-if-left-blank\/","title":{"rendered":"Remplace &#8220;Free!&#8221; with &#8220;Call for price&#8221; when price if left blank"},"content":{"rendered":"<p><!--more--><\/p>\n<p>Add this code in your theme&#8217;s <em>functions.php<\/em>:<\/p>\n<pre class=\"EnlighterJSRAW\">add_filter('woocommerce_empty_price_html', 'custom_call_for_price');\n\nfunction custom_call_for_price() {\n     return 'Call for price';\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>Source:\u00a0<a target=\"_blank\" href=\"https:\/\/gist.github.com\/mikejolley\/1597957\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/gist.github.com\/mikejolley\/1597957<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Add this code in your theme's functions.php: add_filter('woocommerce_empty_price_html', 'custom_call_for_price'); function custom_call_for_price() { return 'Call for price'; } &nbsp; Source:\u00a0https:\/\/gist.github.com\/mikejolley\/1597957","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4,8],"tags":[50,114,228,229,327],"class_list":["post-54439","post","type-post","status-publish","format-standard","hentry","category-php-tricks","category-plugins","category-woocommerce","tag-call-for-price","tag-free","tag-price","tag-price-blank","tag-woocommerce"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54439","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=54439"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54439\/revisions"}],"predecessor-version":[{"id":54865,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/54439\/revisions\/54865"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=54439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=54439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=54439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}