WP_Recovery_Mode::get_email_rate_limit() WordPress Method

The WP_Recovery_Mode::get_email_rate_limit() method is used to get the number of seconds that must elapse between sending recovery mode email notifications. This is to prevent overloading the server with too many email messages.

WP_Recovery_Mode::get_email_rate_limit() #

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


Return

(int) Rate limit in seconds.


Top ↑

Source

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

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


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.