WordPress at a glance
function is not described

WP_Recovery_Mode_Cookie_Service::clear_cookie() public WP 5.2.0

Clears the recovery mode cookie.

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

No Hooks.

Return

Null. Nothing.

Usage

$WP_Recovery_Mode_Cookie_Service = new WP_Recovery_Mode_Cookie_Service();
$WP_Recovery_Mode_Cookie_Service->clear_cookie();

Changelog

Since 5.2.0 Introduced.

Code of WP_Recovery_Mode_Cookie_Service::clear_cookie() WP 5.5.1

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