Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Admin_Post_Table_Instructors::get_serialized_id( int $user_id )
Create a string that can be used in a LIKE query for finding a student’s id in the llms_instructors meta field on the usermeta table
Parameters Parameters
- $user_id
-
(int) (Required) WP User ID
Return Return
(string)
Source Source
File: includes/admin/post-types/post-tables/class.llms.admin.post.table.instructors.php
private function get_serialized_id( $user_id ) { $val = serialize( array( 'id' => absint( $user_id ), ) ); return str_replace( array( 'a:1:{', '}' ), '', $val ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | Introduced. |