llms_locate_template( string $template_name, string $template_path = '', string $default_path = '' )
Locate Template
Description Description
Parameters Parameters
- $template_name
-
(Required) Name of template.
- $template_path
-
(Optional) Dir path to template. Default is empty string. If not supplied the one retrived from
LLMS()->template_path()will be used.Default value: ''
- $default_path
-
(Optional) Default path is empty string. If not supplied the template path is
LLMS()->plugin_path() . '/templates/'.Default value: ''
Return Return
(string)
Source Source
File: includes/functions/llms.functions.template.php
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Only returns path if template exists. |
| 1.0.0 | Introduced. |