apply_filters( ‘wp_is_site_protected_by_basic_auth’, bool $is_protected, string $context )

In this article

Filters whether a site is protected by HTTP Basic Auth.

Parameters

$is_protectedbool
Whether the site is protected by Basic Auth.
$contextstring
The context to check for protection. One of 'login', 'admin', or 'front'.

Source

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

Changelog

VersionDescription
5.6.1Introduced.

User Contributed Notes

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