wp_auth_check_load filter-hookWP 3.6.0

Filters whether to load the authentication check.

Returning a falsey value from the filter will effectively short-circuit loading the authentication check.

Usage

add_filter( 'wp_auth_check_load', 'wp_kama_auth_check_load_filter', 10, 2 );

/**
 * Function for `wp_auth_check_load` filter-hook.
 * 
 * @param bool      $show   Whether to load the authentication check.
 * @param WP_Screen $screen The current screen object.
 *
 * @return bool
 */
function wp_kama_auth_check_load_filter( $show, $screen ){

	// filter...
	return $show;
}
$show(true|false)
Whether to load the authentication check.
$screen(WP_Screen)
The current screen object.

Changelog

Since 3.6.0 Introduced.

Where the hook is called

wp_auth_check_load()
wp_auth_check_load
wp-includes/functions.php 7107
if ( apply_filters( 'wp_auth_check_load', $show, $screen ) ) {

Where the hook is used in WordPress

Usage not found.