Browse: Home / Functions /

learndash_visitor_check_shortcode

learndash_visitor_check_shortcode( array $atts = array(),  string $content = '',  string $shortcode_slug = 'visitor' )

Builds the [visitor] shortcode output.


Description #


Parameters #

$atts

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

  • 'course_id'
    (int) Course ID. Default current course ID.
  • 'content'
    (string) The shortcode content. Default empty
  • 'autop'
    (boolean) Whether to replace line breaks with paragraph elements. Default true.

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''

$shortcode_slug

(string) (Optional) The shortcode slug.

Default value: 'visitor'


Return #

(string) The visitor shortcode output.


Source #

File: includes/shortcodes/ld_visitor.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.