Title: Rest api problem
Last modified: February 12, 2024

---

# Rest api problem

 *  Resolved [mkovcu](https://wordpress.org/support/users/mkovcu/)
 * (@mkovcu)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/)
 * Hello,
 * We have following problem – when your plugin is activated, some rest api endpoints
   stop working. 
   I think problem is that you call `register_rest_route `on init–
   [https://prnt.sc/L5GztdOwF76q](https://prnt.sc/L5GztdOwF76q) [https://prnt.sc/HE6clsfE76y3](https://prnt.sc/HE6clsfE76y3)
   When i disable your plugin all works well. Sample of endpoint that does not work
   when your plugin is active:/wp-json/wc/v3/products/28219/variations
 * Please check and fix, thanks.

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

 *  Plugin Author [Avirtum](https://wordpress.org/support/users/avirtum/)
 * (@avirtum)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/#post-17418587)
 * This endpoint (/wp-json/wc/v3/products/28219/variations) is part of the WooCommerce
   plugin? Anyway, thanks for the report, I will check it.
 *  Thread Starter [mkovcu](https://wordpress.org/support/users/mkovcu/)
 * (@mkovcu)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/#post-17418853)
 * Yes its Woocommerce, also some other endpoints from different plugins, but this
   would be easiest to check i think.
 * thanks
 *  Plugin Author [Avirtum](https://wordpress.org/support/users/avirtum/)
 * (@avirtum)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/#post-17418871)
 * Ok, I will test and report as soon as possible. Thanks for the report again.
 *  Plugin Author [Avirtum](https://wordpress.org/support/users/avirtum/)
 * (@avirtum)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/#post-17419330)
 * Well, I fixed it in v.1.5.3. Yes, you were right, I called register_rest_route
   on “init” instead of “rest_api_init”. That was my fail.
 *  Thread Starter [mkovcu](https://wordpress.org/support/users/mkovcu/)
 * (@mkovcu)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/#post-17419820)
 * Perfect, thanks

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

The topic ‘Rest api problem’ is closed to new replies.

 * ![](https://ps.w.org/ipages-flipbook/assets/icon-256x256.png?rev=2015684)
 * [iPages - FlipBook Image & PDF Viewer](https://wordpress.org/plugins/ipages-flipbook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ipages-flipbook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ipages-flipbook/)
 * [Active Topics](https://wordpress.org/support/plugin/ipages-flipbook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ipages-flipbook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ipages-flipbook/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [mkovcu](https://wordpress.org/support/users/mkovcu/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/rest-api-problem-11/#post-17419820)
 * Status: resolved