llms_get_template_override( string $template = '' )
Get template override.
Parameters Parameters
- $template
-
(string) (Optional) Template file.
Default value: ''
Return Return
(mixed) Template file directory or false if none exists.
Source Source
File: includes/functions/llms.functions.template.php
function llms_get_template_override( $template = '' ) { $dirs = llms_get_template_override_directories(); foreach ( $dirs as $dir ) { $path = $dir . '/'; if ( file_exists( "{$path}{$template}" ) ) { return $path; } } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |