application_password_is_api_request filter-hookWP 5.6.0

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.

Usage

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.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

wp_authenticate_application_password()
application_password_is_api_request
wp-includes/user.php 336
$is_api_request = apply_filters( 'application_password_is_api_request', $is_api_request );

Where the hook is used in WordPress

Usage not found.