Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Our next available supporter will start replying to tickets in about 3.84 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Europe/Athens (GMT+03:00)

This topic contains 1 reply, has 2 voices.

Last updated by Andreas 1 year, 5 months ago.

Assisted by: Andreas.

Author Posts
December 3, 2022 at 6:11 pm #12584273

tonyM-8

I am using Swagger-UI WP plugin and it work as it should, but WPML set "wpml_language" as one of the parameters. I am looking for the way to remove it. There is method "rest_endpoints" in "WPML_REST_Extend_Args" class that set this parameter. Is there a way to disable this? If I return return $endpoints before loop I get my result but that is plugin file. Images attached. Please help!

Screenshot 2022-12-03 at 19.09.14.png
Screenshot 2022-12-03 at 19-07-30 Screenshot.png
December 5, 2022 at 12:33 pm #12591131

Andreas

Hello there

Thank you for contacting us. I am happy to help you.

I am trying to understand what exactly you need, and why this argument is causing issues for you.

Can you please explain better what you need?

In general, those classes are core classes and we should not touch them, because they are needed for the core functionalities of WPML.

Also, have in mind that WPML is not officially supported Rest API for the public, so I am not sure if it is related to your issue.

Regards,
Andreas

The topic ‘[Closed] Disabling wpml_language argument in swagger’ is closed to new replies.