Filter hook 'wp_is_application_passwords_available'

in WP Core File wp-includes/user.php at line 5067

View Source

wp_is_application_passwords_available

Filter Hook
Description
Filters whether Application Passwords is available.

Hook Information

File Location wp-includes/user.php View on GitHub
Hook Type Filter
Line Number 5067

Hook Parameters

Type Name Description
bool $available True if available, false otherwise.

Usage Examples

Basic Usage
<?php
// Hook into wp_is_application_passwords_available
add_filter('wp_is_application_passwords_available', 'my_custom_filter', 10, 1);

function my_custom_filter($available) {
    // Your custom filtering logic here
    return $available;
}

Source Code Context

wp-includes/user.php:5067 - How this hook is used in WordPress core
<?php
5062  	 *
5063  	 * @since 5.6.0
5064  	 *
5065  	 * @param bool $available True if available, false otherwise.
5066  	 */
5067  	return apply_filters( 'wp_is_application_passwords_available', wp_is_application_passwords_supported() );
5068  }
5069  
5070  /**
5071   * Checks if Application Passwords is available for a specific user.
5072   *

PHP Documentation

<?php
/**
	 * Filters whether Application Passwords is available.
	 *
	 * @since 5.6.0
	 *
	 * @param bool $available True if available, false otherwise.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.