• Resolved Tofandel

    (@tofandel)


    The plugin registers it’s wpml endpoint in wpml in a way that switches the current locale to my-wish-list

    This is due to the call to get_endpoint_translation, the second argument should be the locale, but instead the endpoint is passed

    $query_vars[ self::$endpoint ] = $obj->get_endpoint_translation( self::$endpoint, isset( $wc_vars[ self::$endpoint ] ) ? $wc_vars[ self::$endpoint ] : self::$endpoint );

    Should become


    $query_vars[ self::$endpoint ] = $obj->get_endpoint_translation( self::$endpoint );

    Edit: NVM this seems to be more of a WPML issue directly https://wpml.org/forums/topic/wcml_register_endpoints_query_vars-registration-switches-locale/

    • This topic was modified 1 year, 2 months ago by Tofandel.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Taha

    (@tahaamin)

    Hi @tofandel,

    Good morning! I hope you’re having a great day.

    I have forwarded your issue to our development team, and they will review it and get back to you as soon as possible.

    Thanks for your time and understanding! Let me know if you need anything else in the meantime.
    Best regards,

    Plugin Support Taha

    (@tahaamin)

    Hi @tofandel,

    Good day!

    I’ve heard back from our development team, and they suggest waiting until the WPML team responds to the issue mentioned in the link you shared. WPML’s documentation also references a similar example with the second parameter: https://wpml.org/wcml-hook/wcml_register_endpoints_query_vars

    We’ll keep an eye on it and reach out to you soon.

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

The topic ‘WPML issue’ is closed to new replies.