This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Custom Rewrite Rules with parameter option
Started by: carlosS-40 in: English Support |
2 | 5 |
2 years, 6 months ago
carlosS-40 |
||
I need to change the Language URL Format, what is best practice for doing so?
Started by: carlosS-40 in: English Support |
2 | 2 |
4 years, 11 months ago
carlosS-40 |
||
How can I get the Language URL format in use in php?
Started by: carlosS-40
in: English Support
Problem: How can I get the Language URL format in use in php? Solution: We can use the following code to get the Language URL format. The *wpml_setting* API call will return 1 if the Language URL format option is *Different languages in directories* and 3 if the option is *Language name added as a parameter*. $is_wpml_configured = apply_filters( 'wpml_setting', 0, 'language_negotiation_type' ); Relevant Documentation: https://wpml.org/wpml-hook/wpml_setting/ |
2 | 2 |
4 years, 11 months ago
carlosS-40 |