wpc_has_done( int $post_id, array $tracking)

wpc_has_done( $post_id, $tracking )

Checks if a lesson has been completed or viewed by logged in user against passed $tracking array.

Return

(bool) true if lesson is in passed $tracking, false if it is not.

Parameters

$post_id (int) lesson ID

$tracking (int) tracking array

Usage