This function has been deprecated. Use learndash_can_complete_step() instead.
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 #
Changelog #
Version | Description |
---|---|
4.0.3 | Use learndash_can_complete_step() instead. |
3.0.0 | Introduced. This function has been deprecated. Use learndash_can_complete_step() instead. |