LLMS_Abstract_Privacy::get_student_by_email( string $email )
Retrieve an instance of an LLMS_Student from email address.
Parameters Parameters
-
(string) (Required) Email address.
Return Return
(false|LLMS_Student)
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; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.18.0 | Introduced. |