{"id":10903464,"date":"2018-11-21T14:31:50","date_gmt":"2018-11-21T14:31:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/use-str_replace\/"},"modified":"2018-11-21T14:31:50","modified_gmt":"2018-11-21T14:31:50","slug":"use-str_replace","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/use-str_replace\/","title":{"rendered":"use str_replace"},"content":{"rendered":"<p>Hi I am using <code>$wptitle = str_replace(array(&#039;Versandkostenfrei&#039;), &#039;Kostenloser Versand&#039;, $wptitle);<\/code> to Exchange words in my theme.<\/p>\n<p>With &lt;?php echo $term-&gt;name; ?&gt; I can call a therten Name which I would like tom change with the same function. I tried <code>$wptitle = str_replace(array(&#039; .echo ($term-&gt;name;)&#039;), &#039;&#039;, $wptitle);?&gt;<\/code> but obviously not working :-(.<\/p>\n","protected":false},"template":"","class_list":["post-10903464","topic","type-topic","status-publish","hentry","topic-tag-str_replace"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10903464","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\/10903464\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10903464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}