WP_Recovery_Mode_Email_Service::get_recovery_mode_email_address()privateWP 5.2.0

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

Method of the class: WP_Recovery_Mode_Email_Service{}

No Hooks.

Return

String. Email address to send recovery mode link to.

Usage

// private - for code of main (parent) class only
$result = $this->get_recovery_mode_email_address();

Changelog

Since 5.2.0 Introduced.

WP_Recovery_Mode_Email_Service::get_recovery_mode_email_address() code WP 6.5.2

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