BP_Core_Members_Switching::secure_auth_cookie()
Returns whether or not Member Switching’s equivalent of the ‘auth’ cookie should be secure.
Description
This is used to determine whether to set a secure auth cookie or not.
Return
(bool) Should the auth cookie be secure?
Source
File: bp-members/classes/class-bp-core-members-switching.php
public static function secure_auth_cookie() { return ( is_ssl() && ( 'https' === parse_url( wp_login_url(), PHP_URL_SCHEME ) ) ); }
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.