WordPress at Your Fingertips
filter is not described

wp_is_site_protected_by_basic_auth filter-hook . WP 5.6.1

Filters whether a site is protected by HTTP Basic Auth.

Usage

add_filter( 'wp_is_site_protected_by_basic_auth', 'filter_function_name_1442', 10, 2 );
function filter_function_name_1442( $is_protected, $context ){
	// filter...

	return $is_protected;
}
$is_protected(true|false)
Whether the site is protected by Basic Auth.
$context(string)
The context to check for protection. One of 'login', 'admin', or 'front'.

Changelog

Since 5.6.1 Introduced.

Where the hook is called

wp_is_site_protected_by_basic_auth()
wp_is_site_protected_by_basic_auth
wp-includes/load.php 1775
return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context );

Where in WP core the hook is used WordPress

Usage not found.