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 Description
Fires on learndash_template_filename
hook.
Parameters Parameters
- $filepath
-
(Optional) Template file path.
Default value: ''
- $name
-
(Optional) Template name.
Default value: ''
- $args
-
(Optional) Template data.
Default value: array()
- $echo
-
(Optional) Whether to echo the template output or not.
Default value: false
- $return_file_path
-
(Optional) Whether to return file or path or not.
Default value: false
Return Return
(string) Returns template file path.
Source Source
File: themes/ld30/includes/helpers.php
Changelog Changelog
Version | Description |
---|---|
3.0.3 | Introduced. |