W3cubDocs

/WordPress

WP_Recovery_Mode_Email_Service::get_recovery_mode_email_address(): string

Gets the email address to send the recovery mode link to.

Return

string Email address to send recovery mode link to.

Source

private function get_recovery_mode_email_address() {
	if ( defined( 'RECOVERY_MODE_EMAIL' ) && is_email( RECOVERY_MODE_EMAIL ) ) {
		return RECOVERY_MODE_EMAIL;
	}

	return get_option( 'admin_email' );
}

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_email_service/get_recovery_mode_email_address