У этого пользователя нет избранных тем.
Избранные темы форума
Созданные темы форума
Статус |
Тема
|
Специалист поддержки | Голоса | Сообщения | Свежесть |
---|---|---|---|---|---|
Translate Elementor Dynamic tag custom field
Начато: Nohemi
в: English Support
Problem: Solution: public function render(): void {<br /> // Grab settings<br /> $text = (string) $this->get_settings( 'text_param' );<br /> $number = (int) $this->get_settings( 'number_param' );<br /> $select = (string) $this->get_settings( 'select_param' );<br /><br /> // --- WPML translation for the text field ---<br /> // Use a stable domain and a reasonably unique name to avoid collisions across pages.<br /> $domain = 'elementor-random-number-dynamic-tag';<br /> $post_id = function_exists('get_the_ID') ? (int) get_the_ID() : 0;<br /> $name = sprintf( 'text_param|post:%d', $post_id );<br /><br /> // 1) Register the original string (safe to leave in place permanently)<br /> do_action( 'wpml_register_single_string', $domain, $name, $text );<br /><br /> // 2) Fetch the translated version (if any)<br /> $text_translated = apply_filters( 'wpml_translate_single_string', $text, $domain, $name );<br /><br /> // ---- your actual output ----<br /> // (Example: echo the translated text, the random number, etc.)<br /> echo esc_html( $text_translated );<br />} If this solution does not resolve your issue or seems outdated, 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 the problem persists, please open a new support ticket at our support forum. |
|
0 | 13 | 1 неделя назад | |
/wp-json/wpml/tm/v1/ate/jobs/retry 403 if current user hasn't the capability
Начато: Nohemi в: English Support |
|
2 | 10 | 1 год, 3 месяца назад | |
Translate a number in shortcode attributes in elementor
1
2
Начато: Nohemi в: English Support |
|
3 | 22 | 2 года назад | |
Translate Elementor links
Начато: Nohemi в: English Support |
|
2 | 3 | 2 года, 6 месяцев назад | |
Xliff export keeps old translations of old original text
Начато: Nohemi в: English Support |
|
2 | 13 | 4 года, 10 месяцев назад | |
XLIFF for only not updated translation
Начато: Nohemi в: Chat Support |
|
1 | 2 |
4 года, 10 месяцев назад
|