Template::public_profile_title()


Source

File: classes/Template.php

	public function public_profile_title() {
		$username = get_query_var( 'dozent_profile_username' );
		if ( ! empty( $username ) ) {
			$user = get_user_by( 'slug', $username );

			if ( $user ) {
				return sprintf( "%s's Profile page ", $user->display_name );
			}
		}

		return '';
	}