|null Null when the user has no display name. */ public static function build( int $user_id ): ?array { if ( $user_id < 1 ) { return null; } $name = trim( (string) get_the_author_meta( 'display_name', $user_id ) ); if ( '' === $name ) { return null; } return array( '@type' => 'Person', '@id' => Ids::author( $user_id ), 'name' => $name, 'url' => get_author_posts_url( $user_id ), ); } }