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 Parameters


(bool) Whether the site is protected by Basic Auth.


(string) The context to check for protection. One of 'login', 'admin', or 'front'.

Top ↑

Source Source

File: wp-includes/load.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.6.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.