WordPress как на ладони
wordpress jino
фильтр не описан

secure_signon_cookie хук-фильтр . WP 3.1.0

Filters whether to use a secure sign-on cookie.

Использование

add_filter( 'secure_signon_cookie', 'filter_function_name_7342', 10, 2 );
function filter_function_name_7342( $secure_cookie, $credentials ){
	// filter...

	return $secure_cookie;
}
$secure_cookie(bool)
Whether to use a secure sign-on cookie.
$credentials(array)

{ Array of entered sign-on data.

@type string $user_login Username. @type string $user_password Password entered. @type bool $remember Whether to 'remember' the user. Increases the time that the cookie will be kept. }
Default: false

Связи хука

Используется в: wp_signon()

Остальные хуки из: wp_signon():

Кусок кода с хуком

Фрагмент из: wp-includes/user.php WP 4.9
...
	/**
	 * Filters whether to use a secure sign-on cookie.
	 *
	 * @since 3.1.0
	 *
	 * @param bool  $secure_cookie Whether to use a secure sign-on cookie.
	 * @param array $credentials {
 	 *     Array of entered sign-on data.
 	 *
 	 *     @type string $user_login    Username.
 	 *     @type string $user_password Password entered.
	 *     @type bool   $remember      Whether to 'remember' the user. Increases the time
	 *                                 that the cookie will be kept. Default false.
 	 * }
	 */
	$secure_cookie = apply_filters( 'secure_signon_cookie', $secure_cookie, $credentials );

	global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie
	$auth_secure_cookie = $secure_cookie;

	add_filter('authenticate', 'wp_authenticate_cookie', 30, 3);

	$user = wp_authenticate($credentials['user_login'], $credentials['user_password']);

	if ( is_wp_error($user) ) {
		if ( $user->get_error_codes() == array('empty_username', 'empty_password') ) {
			$user = new WP_Error('', '');
		}

		return $user;
	}
...