learndash_is_item_complete( int|WP_Post|null $post = null, int|null $user_id = null, int|null $course_id = null )

Checks if any LearnDash content type is complete.


Description Description

Works on lessons or topics, single function for simpler logic in the templates.


Parameters Parameters

$post

(Optional) WP_Post object. Default to global $post.

Default value: null

$user_id

(Optional) The user to check against.

Default value: null

$course_id

(Optional) The course to check against (required for reusable content).

Default value: null


Top ↑

Return Return

(boolean) Returns true if the item is complete otherwise false.


Top ↑

Source Source

File: themes/ld30/includes/helpers.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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