Private function to modify the current template when previewing a theme

Signature

_preview_theme_template_filter()

Return

(string)

Source

function _preview_theme_template_filter() {
	return isset($_GET['template']) ? $_GET['template'] : '';
}
WP Trac GitHub

Link here