wp_is_application_passwords_available_for_user
Filter HookDescription
Filters whether Application Passwords is available for a specific user.Hook Information
File Location |
wp-includes/user.php
View on GitHub
|
Hook Type | Filter |
Line Number | 5102 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool
|
$available
|
True if available, false otherwise. |
WP_User
|
$user
|
The user to check. |
Usage Examples
Basic Usage
<?php
// Hook into wp_is_application_passwords_available_for_user
add_filter('wp_is_application_passwords_available_for_user', 'my_custom_filter', 10, 2);
function my_custom_filter($available, $user) {
// Your custom filtering logic here
return $available;
}
Source Code Context
wp-includes/user.php:5102
- How this hook is used in WordPress core
<?php
5097 * @since 5.6.0
5098 *
5099 * @param bool $available True if available, false otherwise.
5100 * @param WP_User $user The user to check.
5101 */
5102 return apply_filters( 'wp_is_application_passwords_available_for_user', true, $user );
5103 }
5104
5105 /**
5106 * Registers the user meta property for persisted preferences.
5107 *
PHP Documentation
<?php
/**
* Filters whether Application Passwords is available for a specific user.
*
* @since 5.6.0
*
* @param bool $available True if available, false otherwise.
* @param WP_User $user The user to check.
*/
Quick Info
- Hook Type: Filter
- Parameters: 2
- File: wp-includes/user.php
Related Hooks
Related hooks will be displayed here in future updates.