Hooks/Filters for RankMath’s Instant Indexing WordPress Plugin

#562419
  • Resolved Anonymous
    Rank Math free

    I have installed RankMath’s Instant Indexing WordPress plugin and am using it on our staging server where we stage our content as published and then they deploy to our live server.
    What I am noticing though is that the domain name (with a different sub-domain) for our staging server is being submitted to Google’s Indexing API instead of the production/live domain name.

    1. are there any hooks/filters that we can use to adjust the domain name of the url before it gets submitted to Google’s Index API?
    2. is there any hook/filter or WP Rest API call to trigger an Indexing API submission, let’s say for a deployment schedule that we have?

    These two features would be invaluable. Please let me know.

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

    Thank you for your query and we are so sorry about the trouble this must have caused.

    1. No, the domain name is taken directly from the WordPress options and it cannot be adjusted with filters or hooks on the website.

    2. Those calls are exactly what our plugin does in the backend to submit the URLs to the Indexing API, but if you need to customize those further to suit your needs you would need to implement those following the directives from Google here: https://developers.google.com/search/apis/indexing-api/v3/using-api

    Please note that to use this you would need to have all the prerequisites from here as well: https://developers.google.com/search/apis/indexing-api/v3/prereqs

    Don’t hesitate to get in touch if you have any other questions about our plugin.

    Anonymous
    Rank Math free

    Well you could add a filter/hook to the plugin to allow us to alter the path, domain name and customize it to our needs. Many companies have a staging environments where they deploy content to live environments with plugins like WP Migrate Pro or even using the tens of thousands of websites on WP Engine that have a wonderful dev/staging/prod setup for a website and use their internal deployment tool to migrate content to live without touching the production environment.

    The second answer is not what I was inquiring about. I was talking about the internals of the plugin to see if there were any WP REST API endpoints registered by the plugin that I could use to send the indexing request to Google, or if there was any hook/filter to use to trigger them with parameters on my own instead of when a post is saved/created/deleted.

    Hello,

    Unfortunately, we don’t have any filter/hook to modify the implementation of Google’s indexing API in our plugin. If you want to customize that based on your setup, you will have to manually integrate it on your site by following the guides shared by my colleague.

    Don’t hesitate to get in touch in case you need our assistance with anything else.

    Hello,

    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 3 replies - 1 through 3 (of 3 total)

The ticket ‘Hooks/Filters for RankMath’s Instant Indexing WordPress Plugin’ is closed to new replies.