product:price:currency

#542750
  • Resolved Mohammad Hamed Zarepour
    Rank Math free

    Hi there.
    i used this filter to change priceCurrency and it did work.
    add_filter( ‘rank_math/snippet/rich_snippet_product_entity’, function( $entity ) {
    $entity[‘offers’][‘priceCurrency’] = ‘IRR’;
    return $entity;
    });
    but there is another place that need to be change.
    Still in “””” <meta property=”product:price:currency” content=”IRT” /> “””” the currency is IRT. i want to change it to IRR.
    is there other filter to do that?
    i dont want to change woocommerce price currency

Viewing 3 replies - 1 through 3 (of 3 total)
  • Md. Sakib Khandaker
    Rank Math agency

    Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Please try applying the following filter to see if that works for you.

    add_filter( "rank_math/opengraph/facebook/product_price_currency", function( $content ) {
            $content = 'IRR';
    	return $content;
    });

    Here’s how you can add filters/hooks to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Thank you. it worked.

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.