Browse: Home / Functions /


learndash_30_template_filename( string $filepath = '',  string $name = '',  array $args = array(),  boolean $echo = false,  boolean $return_file_path = false )

Gets the template file path by name.

Description #

Fires on learndash_template_filename hook.

Parameters #


(string) (Optional) Template file path.

Default value: ''


(string) (Optional) Template name.

Default value: ''


(array) (Optional) Template data.

Default value: array()


(boolean) (Optional) Whether to echo the template output or not.

Default value: false


(boolean) (Optional) Whether to return file or path or not.

Default value: false

Return #

(string) Returns template file path.

Source #

File: themes/ld30/includes/helpers.php

Changelog #

Version Description
3.0.3 Introduced.