wp_is_application_passwords_available_for_user WordPress Filter Hook

The wp_is_application_passwords_available_for_user hook allows you to check if the application passwords feature is available for the specified user. This can be useful for checking if a user has the required permissions to use this feature.

apply_filters( 'wp_is_application_passwords_available_for_user', bool $available, WP_User $user ) #

Filters whether Application Passwords is available for a specific user.


Parameters

$available

(bool)True if available, false otherwise.

$user

(WP_User)The user to check.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More