wp_is_application_passwords_available_for_user
Filters whether Application Passwords is available for a specific user.
Usage
add_filter( 'wp_is_application_passwords_available_for_user', 'wp_kama_is_application_passwords_available_for_user_filter', 10, 2 );
/**
* Function for `wp_is_application_passwords_available_for_user` filter-hook.
*
* @param bool $available True if available, false otherwise.
* @param WP_User $user The user to check.
*
* @return bool
*/
function wp_kama_is_application_passwords_available_for_user_filter( $available, $user ){
// filter...
return $available;
}
- $available(true|false)
- True if available, false otherwise.
- $user(WP_User)
- The user to check.
Changelog
| Since 5.6.0 | Introduced. |
Where the hook is called
wp_is_application_passwords_available_for_user
wp-includes/user.php 5183
return apply_filters( 'wp_is_application_passwords_available_for_user', true, $user );