HTTP/2 200
server: nginx
date: Fri, 10 Oct 2025 00:18:32 GMT
content-type: text/html; charset=UTF-8
vary: Accept-Encoding
x-olaf: ⛄
vary: accept, content-type
link:
; rel="https://api.w.org/"
link:
; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
x-frame-options: SAMEORIGIN
content-encoding: gzip
alt-svc: h3=":443"; ma=86400
x-nc: MISS ord 1
wp_is_site_protected_by_basic_auth – Hook | Developer.WordPress.org
WordPress Developer Resources
wp_is_site_protected_by_basic_auth
apply_filters( ‘wp_is_site_protected_by_basic_auth’, bool $is_protected, string $context )
Filters whether a site is protected by HTTP Basic Auth.
$is_protected
boolWhether the site is protected by Basic Auth.
$context
stringThe context to check for protection. One of 'login'
, 'admin'
, or 'front'
.
Version | Description |
---|
5.6.1 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.