My website is https://leafext.de. I have two functions:
function englisch () {
if (get_locale() != "de_DE" ) {
return true;
} else {
return false;
}
}
function deutsch () {
if (get_locale() != "de_DE" ) {
return false;
} else {
return true;
}
}
I add a new (one) post for both german and english speaking visitors. If they call https://leafext.de they get the german content, if they call https://leafext.de/en/ they get the english content. So I write the headers and the text blocks both in german and in english. For each these blocks I make a condition:
- I click “Display Conditions”
- I click “Add Condition”
- I click “Check a user defined function”
- I write in the function field “deutsch” or “englisch”
- I click “save”
Is it possible to simplify steps 2-4 and combine them into one once done? Similar to custom fields. After using them once, they are ready to use afterwards.