Browse: Home / Functions /


learndash_infobar_shortcode( array $atts = array(),  string $content = '',  string $shortcode_slug = 'ld_infobar' )

Builds the [ld_infobar] shortcode output.

Description #

Parameters #


(array) (Optional) An array of shortcode attributes.

  • 'post_id'
    (int) ID of the content being displayed.
  • 'course_id'
    (int) ID of the course when $post_id is a step such as a lesson/topic/quiz
  • 'user_id'
    (int) ID of the use

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'ld_infobar'

Source #

File: includes/shortcodes/ld_infobar.php

Changelog #

Version Description
4.0.0 Introduced.