למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
Make WP API respond in a specific language
נפתח על ידי: kaiE-2
ב: English Support
Problem: do_action('wpml_switch_language', 'en'); but it did not work. rest_request_before_callbacks filter to force the WPML language for specific API endpoints. Here is an example of how you can implement this: add_filter('rest_request_before_callbacks', function ($response, $handler, $request) {<br /> // Specify the endpoints you want to target (or apply globally).<br /> $target_endpoints = ['/wp/v2/posts', '/wp/v2/pages'];<br /> <br /> if (in_array($request->get_route(), $target_endpoints, true)) {<br /> // Switch WPML language context to English.<br /> do_action('wpml_switch_language', 'en');<br /> }<br /> <br /> return $response;<br />}, 10, 3);Please note that we do not provide support for custom coding issues, but only guidance and examples as shown above. If you need further assistance, you might consider hiring a WPML Contractor. This solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If this does not resolve your issue, please open a new support ticket. |
|
0 | 2 | לפני חודש 9, שבוע 1 | |
|
Translation Management Tools
נפתח על ידי: kaiE-2 ב: Chat Support |
|
1 | 2 | לפני חודש 9, שבוע 2 | |
|
Translation Issues with BuddyBoss App
נפתח על ידי: kaiE-2
ב: English Support
Problem: Please note that this solution might be outdated or not applicable to your specific case. We highly recommend checking related known issues at WPML known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket. |
|
0 | 4 | לפני חודש 10, שבוע 1 | |
|
Issues with Custom WooCommerce Email Translations
נפתח על ידי: kaiE-2 ב: English Support |
|
0 | 4 | לפני חודש 10, שבוע 2 | |
|
Translation Management Tools
נפתח על ידי: kaiE-2 ב: English Support |
|
0 | 2 | לפני חודש 10, שבוע 2 |