Core Function
View Source on Trac ↗ wp_is_site_protected_by_basic_auth()
wp_is_site_protected_by_basic_auth( mixed $context = '' ) Checks if this site is protected by HTTP Basic Auth.
Parameters 1 required
| Name / Type | Description |
|---|---|
| string | $context The context to check for protection. Accepts 'login', 'admin', and 'front'. Defaults to the current context. Required |
Return Value
(bool)
Whether the site is protected by Basic Auth.
Function Information
Since Version
5.6.1
Source File
wp-includes/load.php
Advertisement