LLMS_Abstract_User_Engagement::get_user_id()
Retrieve the user ID of the user who earned the certificate
Return Return
(int)
Source Source
File: includes/abstracts/llms-abstract-user-engagement.php
public function get_user_id() { $meta = $this->get_user_postmeta(); return isset( $meta->user_id ) ? absint( $meta->user_id ) : $this->get( 'author' ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.0.0 | Migrated from LLMS_User_Certificate and LLMS_User_Achievement. |
4.5.0 | Force return to an integer. |
3.9.0 | Unknown. |
3.8.0 | Introduced. |