wphooks.info - secure_auth_cookie

secure_auth_cookie

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/pluggable.php:
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
		$secure_logged_in_cookie = $secure && 'https' === parse_url( get_option( 'home' ), PHP_URL_SCHEME );

		/**
		 * Filters whether the connection is secure.
		 *
		 * @since 3.1.0
		 *
		 * @param bool $secure  Whether the connection is secure.
		 * @param int  $user_id User ID.
		 */
		$secure = apply_filters( 'secure_auth_cookie', $secure, $user_id );

		/**
		 * Filters whether to use a secure cookie when logged-in.
		 *
		 * @since 3.1.0
		 *
		 * @param bool $secure_logged_in_cookie Whether to use a secure cookie when logged-in.
		 * @param int  $user_id                 User ID.
		 * @param bool $secure                  Whether the connection is secure.