Skip to content

Kirby 4.5.0

$user->email()

Returns the user email address

$user->email(): string|null

Return type

string|null

Parent class

Kirby\Cms\User

Example

<?= $kirby->user('bastian@example.com')->email() ?>