On this page
apply_filters( 'wp_is_site_protected_by_basic_auth', bool $is_protected, string $context )
Filters whether a site is protected by HTTP Basic Auth.
Parameters
$is_protectedbool-
Whether the site is protected by Basic Auth.
$contextstring-
The context to check for protection. One of
'login','admin', or'front'.
Source
File: wp-includes/load.php. View all references
return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context );
Related
Used By
| Used By | Description |
|---|---|
| wp_is_site_protected_by_basic_auth() wp-includes/load.php | Checks if this site is protected by HTTP Basic Auth. |
Changelog
| Version | Description |
|---|---|
| 5.6.1 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_is_site_protected_by_basic_auth