llms_get_template_override( string $template = '' )

Get template override


Parameters Parameters

$template

(string) (Optional) Template file.

Default value: ''


Top ↑

Return Return

(mixed) Template file or false if none exists.


Top ↑

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;
}


Top ↑

Changelog Changelog

Changelog
Version Description
4.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.