WP_Recovery_Mode::get_email_rate_limit()protectedWP 5.2.0

Gets the rate limit between sending new recovery mode email links.

Method of the class: WP_Recovery_Mode{}

Hooks from the method

Return

Int. Rate limit in seconds.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_email_rate_limit();

Changelog

Since 5.2.0 Introduced.

WP_Recovery_Mode::get_email_rate_limit() code WP 6.5.2

protected function get_email_rate_limit() {
	/**
	 * Filters the rate limit between sending new recovery mode email links.
	 *
	 * @since 5.2.0
	 *
	 * @param int $rate_limit Time to wait in seconds. Defaults to 1 day.
	 */
	return apply_filters( 'recovery_mode_email_rate_limit', DAY_IN_SECONDS );
}