WP_REST_Users_Controller::check_reassign( int|bool $value, WP_REST_Request $request, string $param )
Checks for a valid value for the reassign parameter when deleting users.
Description
The value can be an integer, ‘false’, false, or ”.
Parameters
- $value
-
(Required) The value passed to the reassign parameter.
- $request
-
(Required) Full details about the request.
- $param
-
(Required) The parameter that is being sanitized.
Return
(int|bool|WP_Error)
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |