{"id":4396038,"date":"2013-12-10T02:08:57","date_gmt":"2013-12-10T02:08:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/function-call-issue\/"},"modified":"2016-08-21T13:21:12","modified_gmt":"2016-08-21T13:21:12","slug":"function-call-issue","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/function-call-issue\/","title":{"rendered":"Function call Issue"},"content":{"rendered":"<p>I don&#8217;t know if this is obvious, I&#8217;m not a PHP programmer. I want to call the function in php and integrate it with my theme. I&#8217;m using this function:<\/p>\n<p>&lt;?php echo currencyr_exchange( array( &#8216;amount&#8217; =&gt; 7000, &#8216;to&#8217; =&gt; &#8216;usd&#8217; ) ); ?&gt;<\/p>\n<p>I want is to be able to use a function for the price instead of a numeric value, like this:<\/p>\n<p>&lt;?php echo currencyr_exchange( array( &#8216;amount&#8217; =&gt; listing_price(), &#8216;to&#8217; =&gt; &#8216;usd&#8217; ) ); ?&gt;<\/p>\n<p>Can it be done? maybe my syntax is wrong, I know, but there must be a way to call the price function as the value for &#8216;amount&#8217;.<\/p>\n<p>Hope you can help, BTW the theme I&#8217;m using is WP pro Real Estate 4.<\/p>\n<p>Regards<\/p>\n<p>https:\/\/wordpress.org\/plugins\/currencyr\/<\/p>\n","protected":false},"template":"","class_list":["post-4396038","topic","type-topic","status-closed","hentry","topic-tag-function","topic-tag-theme-integration"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4396038","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\/4396038\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4396038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}