From f72e034f1202a4d2de06550f56ec78665c9cd4bc Mon Sep 17 00:00:00 2001 From: Paulo Pinto Date: Mon, 12 Sep 2022 17:57:13 +0100 Subject: [PATCH] We're not accessing the user, but the client's name --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28507d5..3b3ba1a 100644 --- a/README.md +++ b/README.md @@ -77,14 +77,14 @@ wp-content/themes/my-theme/ └──── forbidden.php ``` -Templates are passed a single `$data` variable containing the values necessary to render said template. For example, you can access the current user as follows: +Templates are passed a single `$data` variable containing the values necessary to render said template. For example, you can access the name of the OIDC client as follows: ```php // wp-content/themes/my-theme/main.php /** @var stdClass $data **/ -/** @var string $user The OIDC client name */ +/** @var string $client_name The OIDC client name */ $client_name = $data->client_name; ```