wp_auth_check_load
Filter HookDescription
Filters whether to load the authentication check. Returning a falsey value from the filter will effectively short-circuit loading the authentication check.Hook Information
| File Location | wp-includes/functions.phpView on GitHub | 
| Hook Type | Filter | 
| Line Number | 7432 | 
Hook Parameters
| Type | Name | Description | 
|---|---|---|
| bool | $show | Whether to load the authentication check. | 
| WP_Screen | $screen | The current screen object. | 
Usage Examples
                        Basic Usage
                    
                    <?php
// Hook into wp_auth_check_load
add_filter('wp_auth_check_load', 'my_custom_filter', 10, 2);
function my_custom_filter($show, $screen) {
    // Your custom filtering logic here
    return $show;
}
Source Code Context
                        wp-includes/functions.php:7432
                        - How this hook is used in WordPress core
                    
                    <?php
7427  	 * @since 3.6.0
7428  	 *
7429  	 * @param bool      $show   Whether to load the authentication check.
7430  	 * @param WP_Screen $screen The current screen object.
7431  	 */
7432  	if ( apply_filters( 'wp_auth_check_load', $show, $screen ) ) {
7433  		wp_enqueue_style( 'wp-auth-check' );
7434  		wp_enqueue_script( 'wp-auth-check' );
7435  
7436  		add_action( 'admin_print_footer_scripts', 'wp_auth_check_html', 5 );
7437  		add_action( 'wp_print_footer_scripts', 'wp_auth_check_html', 5 );
PHP Documentation
<?php
/**
	 * Filters whether to load the authentication check.
	 *
	 * Returning a falsey value from the filter will effectively short-circuit
	 * loading the authentication check.
	 *
	 * @since 3.6.0
	 *
	 * @param bool      $show   Whether to load the authentication check.
	 * @param WP_Screen $screen The current screen object.
	 */
                        Quick Info
                    
                    - Hook Type: Filter
- Parameters: 2
- File: wp-includes/functions.php
                        Related Hooks
                    
                    Related hooks will be displayed here in future updates.
