Method |
Description |
|
add_hooks ( ) |
Add various hooks. |
|
authenticate ( WP_User $input_user, string $username, string $password ) : mixed |
Filter the user to authenticate. |
|
chunk_password ( string $raw_password ) : string |
Sanitize and then split a password into smaller chunks. |
|
create_new_application_password ( integer $user_id, string $name ) : array |
Generate a new application password. |
|
delete_all_application_passwords ( integer $user_id ) : integer |
Deletes all application passwords for the given user. |
|
delete_application_password ( integer $user_id, string $slug ) : boolean |
Delete a specified application password. |
|
get_user_application_passwords ( integer $user_id ) : array |
Get a users application passwords. |
|
password_unique_slug ( array $item ) : string |
Generate a unique repeateable slug from the hashed password, name, and when it was created. |
|
rest_add_application_password ( $data ) : array |
REST API endpoint to add a new application password for a user. |
|
rest_api_auth_handler ( $input_user ) : WP_User | boolean |
Loosely Based on https://github.com/WP-API/Basic-Auth/blob/master/basic-auth.php |
|
rest_api_init ( ) |
Handle declaration of REST API endpoints. |
|
rest_delete_all_application_passwords ( $data ) : integer |
REST API endpoint to delete all of a user's application passwords. |
|
rest_delete_application_password ( $data ) : boolean |
REST API endpoint to delete a given application password. |
|
rest_edit_user_callback ( $data ) : boolean |
Whether or not the current user can edit the specified user. |
|
rest_list_application_passwords ( $data ) : array |
REST API endpoint to list existing application passwords for a user. |
|
rest_test_basic_authorization_header ( ) : WP_Error | array |
Test whether PHP can see Basic Authorization headers passed to the web server. |
|
set_user_application_passwords ( integer $user_id, array $passwords ) : boolean |
Set a users application passwords. |
|
show_user_profile ( WP_User $user ) |
Display the application password section in a users profile. |
|
wp_rest_server_class ( $class ) |
Prevent caching of unauthenticated status. See comment below. |
|