• Resolved mkovcu

    (@mkovcu)


    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/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

    (@avirtum)

    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

    (@mkovcu)

    Yes its Woocommerce, also some other endpoints from different plugins, but this would be easiest to check i think.

    thanks

    Plugin Author Avirtum

    (@avirtum)

    Ok, I will test and report as soon as possible. Thanks for the report again.

    Plugin Author Avirtum

    (@avirtum)

    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

    (@mkovcu)

    Perfect, thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Rest api problem’ is closed to new replies.