Browse: Home / Classes / SFWD_LMS /


SFWD_LMS::get_template( string $name,  array $args,  boolean $echo = false,  $return_file_path = false )

Get LearnDash template and pass data to be used in template

Description #

Checks to see if user has a ‘learndash’ directory in their current theme and uses the template if it exists.

Parameters #


(string) (Required) template name


(array) (Required) data for template


(boolean) (Optional) echo or return

Default value: false

(boolean) (Required) return_file_path return just file path instead of output

Source #

File: includes/class-ld-lms.php

Changelog #

Version Description
2.1.0 Introduced.