learndash_status_bubble( string $status = 'incomplete', string $context = null, boolean $echo = true )

Gets or prints the LearnDash status bubble.


Description Description

Output the status bubble of an element. Simplifies template logic.


Parameters Parameters

$status

(Optional) The current item's status, either incomplete or complete.

Default value: 'incomplete'

$context

(Optional) The current context the bubble is being output, used for color management.

Default value: null

$echo

(Optional) True to print the output and false to return the output.

Default value: true


Top ↑

Return Return

(void|string) Returns the status bubble markup if echo is 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.