send_auth_cookies filter-hookWP 4.7.4

Allows preventing auth cookies from actually being sent to the client.

Usage

add_filter( 'send_auth_cookies', 'wp_kama_send_auth_cookies_filter' );

/**
 * Function for `send_auth_cookies` filter-hook.
 * 
 * @param bool $send Whether to send auth cookies to the client.
 *
 * @return bool
 */
function wp_kama_send_auth_cookies_filter( $send ){

	// filter...
	return $send;
}
$send(true|false)
Whether to send auth cookies to the client.

Changelog

Since 4.7.4 Introduced.

Where the hook is called

wp_set_auth_cookie()
send_auth_cookies
wp_clear_auth_cookie()
send_auth_cookies
wp-includes/pluggable.php 1079
if ( ! apply_filters( 'send_auth_cookies', true ) ) {
wp-includes/pluggable.php 1107
if ( ! apply_filters( 'send_auth_cookies', true ) ) {

Where the hook is used in WordPress

Usage not found.