application_password_is_api_request
Filters whether this is an API request that Application Passwords can be used on.
By default, Application Passwords is available for the REST API and XML-RPC.
Использование
add_filter( 'application_password_is_api_request', 'wp_kama_application_password_is_api_request_filter' ); /** * Function for `application_password_is_api_request` filter-hook. * * @param bool $is_api_request If this is an acceptable API request. * * @return bool */ function wp_kama_application_password_is_api_request_filter( $is_api_request ){ // filter... return $is_api_request; }
- $is_api_request(true|false)
- If this is an acceptable API request.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
application_password_is_api_request
wp-includes/user.php 366
$is_api_request = apply_filters( 'application_password_is_api_request', $is_api_request );