Skip to main content

Conditions Shortcodes

Conditions Shortcodes

Condition shortcodes are not output shortcodes — they don't return text to display. Instead, they are used as boolean checks inside Beaver Themer's [wpbb-if] conditional tag to show or hide content based on the current user's state or the current post's context.

Usage pattern:

[wpbb-if post:bdash_condition]
Content shown when the condition is true
[/wpbb-if]

With else:

[wpbb-if post:bdash_condition]
Shown when true
[wpbb-else]
Shown when false
[/wpbb-if]

Course Conditions

[bdash_is_course] — True when the current page is a LearnDash course.

[bdash_course_started] — True when the current user has started this course.

[bdash_course_in_progress] — True when the current user has started but not completed this course.

[bdash_course_completed] — True when the current user has completed this course.

[bdash_course_has_certificate] — True when this course has a certificate configured.

[bdash_course_certificate_earned] — True when the current user has earned the certificate for this course.

[bdash_course_points_enabled] — True when points are enabled for this course.

[bdash_course_expire_status] — True when this course has an expiry date configured.

[bdash_hide_course_content_table_enabled] — True when the "Hide course content table" setting is enabled for this course.

Lesson Conditions

[bdash_is_lesson] — True when the current page is a LearnDash lesson.

[bdash_drip_future] — True when this lesson is drip-scheduled but not yet available.

[bdash_drip_past] — True when this lesson's drip date has passed and it is available.

[bdash_no_drip] — True when this lesson has no drip schedule.

[bdash_lesson_progression_enabled] — True when lesson progression is enforced for this course.

Topic Conditions

[bdash_is_topic] — True when the current page is a LearnDash topic.

Quiz Conditions

[bdash_is_quiz] — True when the current page is a LearnDash quiz.

[bdash_is_course_quiz] — True when the current quiz is a course-level quiz.

[bdash_is_lesson_quiz] — True when the current quiz is a lesson-level quiz.

[bdash_is_topic_quiz] — True when the current quiz is a topic-level quiz.

[bdash_has_quiz] — True when the current course, lesson, or topic has at least one quiz.

[bdash_quiz_has_certificate] — True when this quiz has a certificate configured.

[bdash_quiz_certificate_earned] — True when the current user has earned the certificate for this quiz.

[bdash_quiz_leaderboard_enabled] — True when the leaderboard is enabled for this quiz.

User Conditions

[bdash_visitor] — True when the current user is not logged in or is not enrolled in this course.

[bdash_student] — True when the current user is logged in and enrolled in this course.

Post Conditions

[bdash_available] — True when the current user has access to this post.

[bdash_unavailable] — True when the current user does not have access to this post.

[bdash_can_progress] — True when the current user is able to progress past this post (e.g. video watched, timer completed).

[bdash_cannot_progress] — True when the current user cannot yet progress past this post.

[bdash_has_certificate] — True when this post has an associated certificate.

[bdash_certificate_earned] — True when the current user has earned the certificate for this post.

[bdash_has_video] — True when this post has a video URL set.

[bdash_video_progression_enabled] — True when video progression is required on this post.

[bdash_has_next] — True when there is a next item in the course sequence from the current page.

[bdash_has_previous] — True when there is a previous item in the course sequence.

[bdash_has_parent] — True when the current item has a parent (e.g. a lesson has a parent course).