• Resolved Steven Ayers

    (@stevenayers63)


    I was creating a custom REST-API prefix and noticed that this plugin has hardcoded references to /wp-json/. If I change my prefix from “wp-json” to “api” or something else, your functionality will not work as expected. Here is the process to?change REST-API prefix.

    Could you update your PHP code to grab the REST-API URL using this function:?get_rest_url()? I’m unsure how to solve the JS references unless you use PHP to write to the JS file.

    -Steven

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Rank Math Support

    (@rankmathsupport)

    Hello,

    Thank you so much for getting in touch.

    We do not use a static wp-json prefix anywhere in the plugin. The one currently utilized is used to retrieve and process data on our site (rankmath.com). If you have changed the REST API prefix, are there any functionalities not working for you?

    We look forward to hearing back from you.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello,

    Assuming you are using the latest version of all the plugins, themes & WordPress and the issue is resolved, we are closing this support topic.

    If that is not the case, feel free to open a new support topic or reply to this one, and we will be more than happy to assist.

    Looking forward to helping you. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin not compatible with custom REST-API prefix’ is closed to new replies.