WP_Recovery_Mode_Cookie_Service::clear_cookie

Advertisement

Summery Summery

Clears the recovery mode cookie.

Syntax Syntax

WP_Recovery_Mode_Cookie_Service::clear_cookie()

Source Source

File: wp-includes/class-wp-recovery-mode-cookie-service.php

	public function clear_cookie() {
		setcookie( RECOVERY_MODE_COOKIE, ' ', time() - YEAR_IN_SECONDS, COOKIEPATH, COOKIE_DOMAIN );
		setcookie( RECOVERY_MODE_COOKIE, ' ', time() - YEAR_IN_SECONDS, SITECOOKIEPATH, COOKIE_DOMAIN );
	}

Advertisement

Changelog Changelog

Changelog
Version Description
5.2.0 Introduced.

Advertisement

Leave a Reply