Core Function
View Source on Trac ↗ rest_application_password_check_errors()
rest_application_password_check_errors( mixed $result ) Checks for errors when using application password-based authentication.
Parameters 1 required
| Name / Type | Description |
|---|---|
| mixed | (WP_Error | null | true) $result Error from another authentication handler, null if we should handle it, or another value if not. Required |
Return Value
((WP_Error)
| null | true) WP_Error if the application password is invalid, the $result, otherwise true.
Function Information
Since Version
5.6.0
Source File
wp-includes/rest-api.php
Advertisement