llms_template_file_path( string $template, string $template_directory = 'templates', bool $template_directory_absolute = false )
Build the plugin’s template file path.
Parameters Parameters
- $template
-
(string) (Required) Template file name.
- $template_directory
-
(string) (Optional) Template directory relative to the plugin base directory.
Default value: 'templates'
- $template_directory_absolute
-
(bool) (Optional) Whether the template directory is absolute or not.
Default value: false
Return Return
(string)
Source Source
File: includes/functions/llms.functions.template.php
*/ function llms_template_file_path( $template, $template_directory = 'templates', $template_directory_absolute = false ) { // We have reason to use a LifterLMS template, check if there's an override we should use from a theme / etc... $override = llms_get_template_override( $template ); $template_directory = $template_directory_absolute ? $template_directory : llms()->plugin_path() . "/{$template_directory}/"; $template_path = $override ? $override : $template_directory; return trailingslashit( $template_path ) . "{$template}";
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |