apply_filters( 'wpml_tm_xliff_export_translated_cf', string $field_data_translated, object $element )
- Type
- filter
- Category
- Miscellaneous
- WPML Version
- 3.2
Description
WPML applies this hook filter to the translated custom field values when a document is exported to an XLIFF file. The custom field value is in this way made available to external themes and plugins for further manipulation before saving e.g. substitution.
Arguments
- $field_data_translated
- (string) (Optional) The encoded translated custom field value. Empty if not translated yet
- $element
- (object) (Optional) The current custom field
Example usage
A basic example
add_filter( 'wpml_tm_xliff_export_translated_cf', 'callback_3', 10, 2 );
function callback_3( $field_data_translated, $element ) {
$field_data_translated = base64_decode( $field_data_translated );
return $field_data_translated;
}
Related hooks
icl_ls_languages, wpml_sync_custom_field_copied_value, wpml_ls_enable_ajax_navigation, wpml_element_type, wpml_setting, wpml_sub_setting, wpml_exclude_post_from_auto_translate, wpml_forms_config_ninja-forms, wpml_forms_config_wpforms, wpml_tf_feedback_open_link