W3cubDocs

/WordPress

WP_Recovery_Mode::get_email_rate_limit(): int

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

Return

int Rate limit in seconds.

Source

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

Hooks

apply_filters( ‘recovery_mode_email_rate_limit’, int $rate_limit )

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

Changelog

Version Description
5.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_recovery_mode/get_email_rate_limit