Filters whether a site is protected by HTTP Basic Auth.
$is_protectedbool
$contextstring
'login', 'admin', or 'front'.return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context );
| Version | Description |
|---|---|
| 5.6.1 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_is_site_protected_by_basic_auth