Tribe__Events__Integrations__WPML__Option::translate( string $option_value, string $default, string $option_name )
Translate the option value using WPML filters.
Contents
See also
Parameters
- $option_value
-
(string) (Required) The value of the option to translate.
- $default
-
(string) (Required) The option default value.
- $option_name
-
(string) (Required) The name of the option to translate.
Return
(string) The translated option value.
Source
File: src/Tribe/Integrations/WPML/Option.php
public function translate( $option_value, $default, $option_name ) {
if ( is_string( $option_value ) ) {
$option_value = apply_filters(
'wpml_translate_single_string',
$option_value,
'admin_texts_tribe_events_calendar_options',
'[tribe_events_calendar_options]' . $option_name
);
}
return $option_value;
}
Changelog
| Version | Description |
|---|---|
| 5.2.0 | Introduced. |