WordPress at Your Fingertips
function is not described

WC_Shortcode_My_Account::set_reset_password_cookie() public WC 1.0

Set or unset the cookie.

{} It's a method of the class: WC_Shortcode_My_Account{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Shortcode_My_Account::set_reset_password_cookie( $value );
$value(string)
Cookie value.
Default: ''

Code of WC_Shortcode_My_Account::set_reset_password_cookie() WC 5.9.0

public static function set_reset_password_cookie( $value = '' ) {
	$rp_cookie = 'wp-resetpass-' . COOKIEHASH;
	$rp_path   = isset( $_SERVER['REQUEST_URI'] ) ? current( explode( '?', wp_unslash( $_SERVER['REQUEST_URI'] ) ) ) : ''; // WPCS: input var ok, sanitization ok.

	if ( $value ) {
		setcookie( $rp_cookie, $value, 0, $rp_path, COOKIE_DOMAIN, is_ssl(), true );
	} else {
		setcookie( $rp_cookie, ' ', time() - YEAR_IN_SECONDS, $rp_path, COOKIE_DOMAIN, is_ssl(), true );
	}
}