Skip to content

Commit

Permalink
We're not accessing the user, but the client's name
Browse files Browse the repository at this point in the history
  • Loading branch information
psrpinto committed Sep 12, 2022
1 parent c26980e commit f72e034
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
```

Expand Down

0 comments on commit f72e034

Please sign in to comment.