class-wpml-tm-rest-job-translator-name.php 239 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <?php class WPML_TM_Rest_Job_Translator_Name { public function get( $translator_id ) { $user = get_user_by( 'id', $translator_id ); if ( $user instanceof WP_User ) { return $user->display_name; } else { return ''; } } }