Skip to content

Commit 5017711

Browse files
committed
update
1 parent 48b575f commit 5017711

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -858,15 +858,14 @@ The Wordpress authentication middleware defines three routes:
858858

859859
A user can be logged in by sending it's username and password to the login endpoint (in JSON format).
860860
The user can be logged out by sending a POST request with an empty body to the logout endpoint.
861-
In the authorization middleware you can use functions:
861+
The middleware calls "wp-load.php" this allows you to use Wordpress functions in the authorization middleware, like:
862862

863863
- wp_get_current_user()
864864
- is_user_logged_in()
865865
- is_super_admin()
866866
- user_can(wp_get_current_user(),'edit_posts');
867867

868-
Play with it and let me know how you like it.. :-)
869-
868+
Note that the `$_SESSION` variable is not used by this middleware.
870869

871870
#### Basic authentication
872871

0 commit comments

Comments
 (0)