wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_is_site_protected_by_basic_auth › WordPress Filter Hooks

Since5.6.1
Deprecatedn/a
apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context )
Parameters: (2)
  • (bool) $is_protected Whether the site is protected by Basic Auth.
    Required: Yes
  • (string) $context The context to check for protection. One of 'login', 'admin', or 'front'.
    Required: Yes
Defined at:
Codex:

Filters whether a site is protected by HTTP Basic Auth.





Source

return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context );