missing the required permission_callback argument
-
Notice: register_rest_route was called incorrectly. The REST API route definition for api-bearer-auth/v1/login is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html-dev/wp-includes/functions.php on line 5225
Notice: register_rest_route was called incorrectly. The REST API route definition for api-bearer-auth/v1/tokens/refresh is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /var/www/html-dev/wp-includes/functions.php on line 5225
Please add this line
'permission_callback' => '__return_true',
to register_rest_route in function rest_api_init_action()
- The topic ‘missing the required permission_callback argument’ is closed to new replies.