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 ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |