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


Top ↑

Return Return

(string)


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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