WPML
SignaturePHP
apply_filters( 'wpml_tm_xliff_export_translated_cf', string $field_data_translated, object $element )

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_translatedstringOptional

    The encoded translated custom field value. Empty if not translated yet
  • $elementobjectOptional

    The current custom field

Example Usage

A basic examplePHP
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;
}