rest_authentication_errors

rest_authentication_errors

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('rest_authentication_errors') is found 1 times:

  • /wp-includes/rest-api/class-wp-rest-server.php line 197
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
         *
         * @param WP_Error|null|true $errors WP_Error if authentication error, null if authentication
         *                                   method wasn't used, true if authentication succeeded.
         */
        return apply_filters( 'rest_authentication_errors', null );
    }
     
    /**
     * Converts an error to a response object.
     *
     * This iterates over all error codes and messages to change it into a flat

See this hook used in plugins: