LLMS_Abstract_Privacy::get_student_by_email( string $email )

Retrieve an instance of an LLMS_Student from email address.


Parameters Parameters

$email

(string) (Required) Email address.


Top ↑

Return Return

(false|LLMS_Student)


Top ↑

Source Source

File: includes/abstracts/llms.abstract.privacy.php

	protected static function get_student_by_email( $email ) {

		$user = get_user_by( 'email', $email );
		if ( is_a( $user, 'WP_User' ) ) {
			return llms_get_student( $user );
		}

		return false;
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.18.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.