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

  • Resolved Sandip Das

    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)
  • Danial


    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.


    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘want to change “inLanguage”: “en-US” to “inLanguage”: “en-AE”,’ is closed to new replies.