wpc_get_lesson_tracking_table( int $user_id, bool $viewed = true )

function wpc_get_lesson_tracking_table( $user_id, $viewed = true )

Returns a sortable table of either viewed or completed lessons for the user ID you’ve passed.

Parameters

$user_id (int) user ID

$viewed (bool) true for viewed lessons, false for completed lessons

Usage