wp_auth_check_same_domain WordPress Filter Hook
The wp_auth_check_same_domain hook is used to check whether the current user is authenticated on the same domain as the site they are trying to access. This is useful for sites that allow users to access their content from multiple domains, such as a content management system that allows users to login from any domain.
apply_filters( 'wp_auth_check_same_domain', bool $same_domain ) #
Filters whether the authentication check originated at the same domain.
Parameters
- $same_domain
(bool)Whether the authentication check originated at the same domain.
Source
Changelog
Version | Description |
---|---|
3.6.0 | Introduced. |