want to change “inLanguage”: “en-US” to “inLanguage”: “en-AE”,

  • the inLanguage depends on WordPress site language settings. As in the WordPress, option = in-AE is not available, I have changed that from the child theme function but in the Rankmath how do I change “inLanguage”: “en-US” to “inLanguage”: “en-AE”. or any other way to do that?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    The change available from WordPress Dashboard > Settings > General.

    Refer to this link on language that the plugin supports in stable version:

    I hope this resolves your issue.


    We have removed some of the invalid Schemas like the inLanguage one from the plugin in this recent update: https://rankmath.com/changelog/

    With that said, are you getting any error or warnings relating to this in the Search Console?

    The inLanguage property is not needed. Search Engines understands the site language based on the hreflang tags.

    I have updated the plugin but still, it’s showing me the inLanguage property in the source code. Although I didn’t get any error from google console.


    Please add following filter code to your theme’s functions.php file to change the inLanguage property value:

    add_filter( 'rank_math/schema/language', function() {
        return 'en-AE';
    } );

    I hope that helps.

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

You must be logged in to reply to this ticket.