Browse: Home / Classes / SFWD_LMS /

SFWD_LMS::get_template

SFWD_LMS::get_template( string $name,  array|null $args,  bool|null $echo = false,  bool $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 #

$name

(string) (Required) Template name.

$args

(array|null) (Required) Data for template.

$echo

(bool|null) (Optional) echo or return.

Default value: false

$return_file_path

(bool) (Optional) Return just file path instead of output.

Default value: false


Source #

File: includes/class-ld-lms.php


Changelog #

Changelog
Version Description
2.1.0 Introduced.