WP_Recovery_Mode_Cookie_Service::clear_cookie() WordPress Method

The WP_Recovery_Mode_Cookie_Service::clear_cookie() method is used to remove the WordPress recovery mode cookie. This cookie is set when a user begins the WordPress recovery mode process and is used to verify that the user is authorized to access the recovery mode interface. This method is typically called when the recovery mode process is complete and the user is redirected to the WordPress login page.

WP_Recovery_Mode_Cookie_Service::clear_cookie() #

Clears the recovery mode cookie.


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 );
	}

Top ↑

Changelog

Changelog
VersionDescription
5.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.