WP_Recovery_Mode_Email_Service::clear_rate_limit() WordPress Method

The clear_rate_limit() method is used to reset the rate limit for the WP_Recovery_Mode_Email_Service class. This is useful if you want to retry sending an email after a failed attempt.

WP_Recovery_Mode_Email_Service::clear_rate_limit() #

Clears the rate limit, allowing a new recovery mode email to be sent immediately.


Return

(bool) True on success, false on failure.


Top ↑

Source

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

	public function clear_rate_limit() {
		return delete_option( self::RATE_LIMIT_OPTION );
	}


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.