Title: Change wp-json path
Last modified: February 6, 2025

---

# Change wp-json path

 *  Resolved [ChickenDipper](https://wordpress.org/support/users/chickendipper/)
 * (@chickendipper)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/)
 * Hi,
   I use WPGhost to hide standard wordpress paths and have noticed that if I
   change the /wp-json url to anything apart from the default it breaks the search.
   Is there any way to stop this happening at all?
 * Thanks

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

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291272)
 * Hi,
 * The plugin does not use the wp-json endpoints, but the wp-admin/admin-ajax.php
   endpoint. However it’s not hard coded, so it’s requested from WordPress core.
   I suspect that might be the issue? Make sure that’s not changed or hidden.
 * It wouldn’t make any difference of changing the admin-ajax URL anyways, as it’s
   a public resource used by the WordPress Core for XHR requests, so even if you
   were to change it it’s immediately revealed. That should resolve the issue.
 * All the best,
   Ernest
 *  Thread Starter [ChickenDipper](https://wordpress.org/support/users/chickendipper/)
 * (@chickendipper)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291296)
 * Sorry little confused. Make sure what is not changed or hidden?
 * The issue only occurs if I change the wp-json path. I can change admin-ajax.php
   without issue.
 * I have the plugin set to use its own ajax in settings also.
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291346)
 * I’m sorry, I wasn’t clear. Make sure the admin-ajax URL is not changed.
 * Can I take a look at this issue somewhere?
 * All the best,
   Ernest
 *  Thread Starter [ChickenDipper](https://wordpress.org/support/users/chickendipper/)
 * (@chickendipper)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291353)
 * Hi,
 * Not a problem although it already is and has no impact.
 * You can see the issue here: [https://ukradio.live](https://ukradio.live) currently
   admin-ajax.php is set as just ajax.php and wp-json path is not modifed and search
   works.
   Now if I change wp-json search will break.Thank you
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291453)
 * Okay! Can you change it so it’s broken? I will run a few tests to see what changes.
 *  Thread Starter [ChickenDipper](https://wordpress.org/support/users/chickendipper/)
 * (@chickendipper)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291459)
 * Yep, I have changed wp-json to api now 🙂
 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291470)
 * Thanks! I tried it again, but everything works as before: [https://i.imgur.com/qSRU2yl.png](https://i.imgur.com/qSRU2yl.png)
 * Do you see something different?
 *  Thread Starter [ChickenDipper](https://wordpress.org/support/users/chickendipper/)
 * (@chickendipper)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291480)
 * Ok that is very odd as I was tinkering last night with it and thought I had pin
   pointed what was breaking it, but now it’s fine.
 * Well in that case it seems the issue is resolved at the moment!
   What would happen
   before, you would type in the search but nothing would happen at all no spinner
   or results would show.
 * My apologies and thank you for checking.
    -  This reply was modified 1 year, 4 months ago by [ChickenDipper](https://wordpress.org/support/users/chickendipper/).

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

The topic ‘Change wp-json path’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [ChickenDipper](https://wordpress.org/support/users/chickendipper/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/change-wp-json-path/#post-18291480)
 * Status: resolved