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 #
- $filepath
-
(string) (Optional) Template file path.
Default value: ''
- $name
-
(string) (Optional) Template name.
Default value: ''
- $args
-
(array) (Optional) Template data.
Default value: array()
- $echo
-
(boolean) (Optional) Whether to echo the template output or not.
Default value: false
- $return_file_path
-
(boolean) (Optional) Whether to return file or path or not.
Default value: false
Return #
(string) Returns template file path.
Source #
Changelog #
Version | Description |
---|---|
3.0.3 | Introduced. |