WP_Recovery_Mode_Email_Service::maybe_send_recovery_mode_email

SummerySummery

Sends the recovery mode email if the rate limit has not been sent.

Syntax

WP_Recovery_Mode_Email_Service::maybe_send_recovery_mode_email( int $rate_limit, array $error, array $extension )

ParametersParameters

$rate_limit

(int) (Required) Number of seconds before another email can be sent.

$error

(array) (Required) Error details from error_get_last()

$extension

(array) (Required) The extension that caused the error. { @type string $slug The extension slug. The plugin or theme's directory. @type string $type The extension type. Either 'plugin' or 'theme'. }

ReturnReturn

(true|WP_Error) True if email sent, WP_Error otherwise.

SourceSource

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


			

ChangelogChangelog

Changelog
Version Description
5.2.0 Introduced.
Scroll to Top