learndash_30_focus_mode_can_complete

learndash_30_focus_mode_can_complete( int|WP_Post|null $post = null,  int|null $course_id = null )

Checks whether a post can be marked as complete or not in focus mode.


Description #


Parameters #

$post

(int|WP_Post|null) (Optional) WP_Post object or post ID. Default to global $post.

Default value: null

$course_id

(int|null) (Optional) Course ID.

Default value: null


Return #

(boolean) Whether a post can be marked as complete.


Source #

File: themes/ld30/includes/helpers.php