• Resolved Jean R.

    (@efbi)


    Hello,

    I noticed that when using the hook rest_url_prefix to change the prefix of wp-json to a custom one, the trackship hook doesn’t work anymore !

    Could you change your code to get the dynamic route prefix like esc_url(rest_url())

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Brijesh Patel

    (@brijesh353)

    Hi @efbi,

    Please get in touch with TrackShip support through the support chat so we can locate your account and provide better assistance.

    Best Regards

    Thread Starter Jean R.

    (@efbi)

    Hi,

    The issue is already solved when I switch back.

    But your plugin needs to accept to work with the wp filter hook rest_url_prefix (https://developer.wordpress.org/reference/hooks/rest_url_prefix/)

    For security issue, I prefer change the wp-json prefix.

    Brijesh Patel

    (@brijesh353)

    Hi Jean,
    I checked with our dev team—TrackShip initiates the API call to the store, but since the REST URL prefix has been customized on your end, our system isn’t aware of the change and continues using the default wp-json prefix.
    We’re exploring alternative solutions to support stores that use the rest_url_prefix filter for added security. We’ll keep this in mind for future improvements.
    Best regards

    Thread Starter Jean R.

    (@efbi)

    Ok thanks!
    I think you should use your plugin to send the information about the prefix..
    Let me know if you fix it

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

The topic ‘WP REST API url prefix issue’ is closed to new replies.