{"id":16192759,"date":"2022-11-13T01:41:00","date_gmt":"2022-11-13T01:41:00","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/add-custom-price-currency\/"},"modified":"2022-11-13T01:41:00","modified_gmt":"2022-11-13T01:41:00","slug":"add-custom-price-currency","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/add-custom-price-currency\/","title":{"rendered":"add custom price currency"},"content":{"rendered":"<p>hi there. we have a local price that our users feel more comfortable with, but its not iso; i am willing to change the store price to local and edit schema to show iso currency to google.<br \/>\ni&#8217;ve tried this snippet but nothing change either in fucntions.php or rank-math.php file.<\/p>\n<pre><code>\/\/add rial currency to rankmath product schema\nadd_filter( &#039;rank_math\/snippet\/rich_snippet_product_entity&#039;, function( $entity ) {\n\t$entity[&#039;offers&#039;][&#039;priceCurrency&#039;] = &quot;IRR&quot;;\n\treturn $entity;\n} );<\/code><\/pre>\n<p>please help me with this situation<\/p>\n","protected":false},"template":"","class_list":["post-16192759","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/16192759","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\/16192759\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=16192759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}