Filter hook 'wp_auth_check_same_domain'

in WP Core File wp-includes/functions.php at line 7458

View Source

wp_auth_check_same_domain

Filter Hook
Description
Filters whether the authentication check originated at the same domain.

Hook Information

File Location wp-includes/functions.php View on GitHub
Hook Type Filter
Line Number 7458

Hook Parameters

Type Name Description
bool $same_domain Whether the authentication check originated at the same domain.

Usage Examples

Basic Usage
<?php
// Hook into wp_auth_check_same_domain
add_filter('wp_auth_check_same_domain', 'my_custom_filter', 10, 1);

function my_custom_filter($same_domain) {
    // Your custom filtering logic here
    return $same_domain;
}

Source Code Context

wp-includes/functions.php:7458 - How this hook is used in WordPress core
<?php
7453  	 *
7454  	 * @since 3.6.0
7455  	 *
7456  	 * @param bool $same_domain Whether the authentication check originated at the same domain.
7457  	 */
7458  	$same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain );
7459  	$wrap_class  = $same_domain ? 'hidden' : 'hidden fallback';
7460  
7461  	?>
7462  	<div id="wp-auth-check-wrap" class="<?php echo $wrap_class; ?>">
7463  	<div id="wp-auth-check-bg"></div>

PHP Documentation

<?php
/**
	 * Filters whether the authentication check originated at the same domain.
	 *
	 * @since 3.6.0
	 *
	 * @param bool $same_domain Whether the authentication check originated at the same domain.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/functions.php
Related Hooks

Related hooks will be displayed here in future updates.