apply_filters( 'wpml_tm_xliff_export_original_cf', string $field_data, object $element )
- Type
- filter
- Category
- Miscellaneous
- WPML Version
- 3.2
Description
WPML applies this hook filter to the original 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
- (string) (Optional) The encoded original custom field value.
- $element
- (object) (Optional) The current custom field
Example usage
A basic example
add_filter('wpml_tm_xliff_export_original_cf', 'callback_3', 10, 2);
function callback_3( $field_data, $element ) {
$field_data = base64_decode( $field_data );
return $field_data;
}
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