learndash_status_bubble( string $status = 'incomplete', string $context = null, bool $echo = true )
Gets or prints the LearnDash status bubble.
Description #
Output the status bubble of an element. Simplifies template logic.
Parameters #
- $status
-
(string) (Optional) The current item's status, either incomplete or complete.
Default value: 'incomplete'
- $context
-
(string) (Optional) The current context the bubble is being output, used for color management.
Default value: null
- $echo
-
(bool) (Optional) True to print the output.
Default value: true
Return #
(() $echo is true ? void : string ) Returns the status bubble markup or echoes it if $echo is true.
Source #
Changelog #
Version | Description |
---|---|
3.0.0 | Introduced. |