过滤REST身份验证错误。
原型
apply_filters( 'rest_authentication_errors', WP_Error|null|bool )
描述
这用于将来自身份验证方法的WP_Error传递回API。
源文件
路径:wp-includes/rest-api/class-wp-rest-server.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/rest_authentication_errors/