Browse: Home / Functions /


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

Builds the [ld_materials] shortcode output.

Description #

Parameters #


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

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

Default value: array()


(string) (Optional) The shortcode content.

Default value: ''


(string) (Optional) The shortcode slug.

Default value: 'ld_materials'

Return #

(string) The ld_materials shortcode output.

Source #

File: includes/shortcodes/ld_materials.php

Changelog #

Version Description
4.0.0 Introduced.