Browse: Home / Functions /

learndash_materials_shortcode_function

learndash_materials_shortcode_function( array $atts = array(),  string $content = '',  string $shortcode_slug = 'ld_materials' )

Builds the [ld_materials] shortcode output.


Description #


Parameters #

$atts

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

  • 'post_id'
    (int) ID of the post for dislaying the materials

Default value: array()

$content

(string) (Optional) The shortcode content.

Default value: ''

$shortcode_slug

(string) (Optional) The shortcode slug.

Default value: 'ld_materials'


Return #

(string) The ld_materials shortcode output.


Source #

File: includes/shortcodes/ld_materials.php


Changelog #

Changelog
Version Description
4.0.0 Introduced.