Flsupport_Tokens::fillin_wpuser_data( $person )


Source Source

File: src/integrations/fluent-support/tokens/flsupport-tokens.php

	protected function fillin_wpuser_data( $person ) {
		if ( is_object( $person ) ) {
			$user_id = 0;
			if ( isset( $person->user_id ) ) {
				if ( $person->user_id ) {
					// fill in WP user details.
					$user_data        = \get_userdata( $person->user_id );
					$person->username = $user_data->user_login;
				}
			}
		}

		return $person;
	}