availability:

WPML Version: 3.3.7

description:

Filters an array of user meta keys which will be translated when calling the function get_the_author(). The translatable user meta fields will be registered as strings in WPML String Translation.

type:
filter
category:
Miscellaneous
parameters:
add_filter( 'wpml_translatable_user_meta_fields', array $user_meta_fields );
$user_meta_fields
(array) (Required) Containing the user meta fields to translate.
hook example usage:

Example

function add_favorite_food_user_field( $user_meta_fields ) {
    $user_meta_fields[] = 'favorite_food';
    return $user_meta_fields;
}
add_filter( 'wpml_translatable_user_meta_fields', 'add_favorite_food_user_field' );