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.
Source
File: wp-includes/class-wp-recovery-mode-email-service.php
public function clear_rate_limit() { return delete_option( self::RATE_LIMIT_OPTION ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |