handle_cookie example

wp_schedule_event( time(), 'daily', 'recovery_mode_clean_expired_keys' );
        }

        if ( defined( 'WP_RECOVERY_MODE_SESSION_ID' ) ) {
            $this->is_active  = true;
            $this->session_id = WP_RECOVERY_MODE_SESSION_ID;

            return;
        }

        if ( $this->cookie_service->is_cookie_set() ) {
            $this->handle_cookie();

            return;
        }

        $this->link_service->handle_begin_link( $this->get_link_ttl() );
    }

    /** * Checks whether recovery mode is active. * * This will not change after recovery mode has been initialized. {@see WP_Recovery_Mode::run()}. * * @since 5.2.0 * * @return bool True if recovery mode is active, false otherwise. */
Home | Imprint | This part of the site doesn't use cookies.