wp_auth_check_load
Filters whether to load the authentication check.
Returning a falsey value from the filter will effectively short-circuit loading the authentication check.
Использование
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.
Список изменений
| С версии 3.6.0 | Введена. |
Где вызывается хук
wp_auth_check_load
wp-includes/functions.php 7451
if ( apply_filters( 'wp_auth_check_load', $show, $screen ) ) {