Browse: Home / Functions /


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

Builds the [visitor] shortcode output.

Description #

Parameters #


(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()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'visitor'

Return #

(string) The visitor shortcode output.

Source #

File: includes/shortcodes/ld_visitor.php

Changelog #

Version Description
2.1.0 Introduced.