Skip to content

Commit 1c5b26c

Browse files
authored
Merge pull request #33 from Automattic/wrong-paths
Fix wrong paths in docs
2 parents f4449a2 + 295144c commit 1c5b26c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,9 @@ To do so, you should create an `openid-connect/` directory under your theme, con
7373
```shell
7474
wp-content/themes/my-theme/
7575
│── openid-connect/
76-
│──── main.php
77-
└──── forbidden.php
76+
│──── authenticate/
77+
│────── main.php
78+
└────── forbidden.php
7879
```
7980

8081
If your theme is a child theme, this plugin will first look for templates under the child theme, and then in the parent theme. If it doesn't find a template, it will fall back to using the default template.
@@ -83,7 +84,7 @@ If your theme is a child theme, this plugin will first look for templates under
8384
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:
8485

8586
```php
86-
// wp-content/themes/my-theme/main.php
87+
// wp-content/themes/my-theme/openid-connect/authenticate/main.php
8788

8889
/** @var stdClass $data **/
8990

@@ -97,7 +98,7 @@ You can of course also call any other WordPress function, like you would in any
9798
In your templates, you can include partial templates (aka partials) by calling `$data->templates->partial()`:
9899

99100
```php
100-
// wp-content/themes/my-theme/main.php
101+
// wp-content/themes/my-theme/openid-connect/authenticate/main.php
101102

102103
/** @var stdClass $data **/
103104

0 commit comments

Comments
 (0)