Title: Plugin not compatible with custom REST-API prefix
Last modified: November 30, 2023

---

# Plugin not compatible with custom REST-API prefix

 *  Resolved [Steven Ayers](https://wordpress.org/support/users/stevenayers63/)
 * (@stevenayers63)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-custom-rest-api-prefix/)
 * 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](https://wpsecuritysafe.com/log/hide-wordpress-with-custom-code/#rest-api).
 * Could you update your PHP code to grab the REST-API URL using this function: 
   [get_rest_url()](https://developer.wordpress.org/reference/functions/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](https://wordpress.org/support/users/rankmathsupport/)
 * (@rankmathsupport)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-custom-rest-api-prefix/#post-17244781)
 * 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](https://wordpress.org/support/users/rankmathteam/)
 * (@rankmathteam)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-custom-rest-api-prefix/#post-17260902)
 * 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.

 * ![](https://ps.w.org/seo-by-rank-math/assets/icon.svg?rev=3438330)
 * [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings](https://wordpress.org/plugins/seo-by-rank-math/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/seo-by-rank-math/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/seo-by-rank-math/)
 * [Active Topics](https://wordpress.org/support/plugin/seo-by-rank-math/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/seo-by-rank-math/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/seo-by-rank-math/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Rank Math Support](https://wordpress.org/support/users/rankmathteam/)
 * Last activity: [2 years, 5 months ago](https://wordpress.org/support/topic/plugin-not-compatible-with-custom-rest-api-prefix/#post-17260902)
 * Status: resolved