Hooks::filter_template_path_list( array $folders = array() )

Filters the list of folders TEC will look up to find templates to add the ones defined by PRO.


Parameters

$folders

(array) (Optional) The current list of folders that will be searched template files.

Default value: array()


Top ↑

Return

(array) The filtered list of folders that will be searched for the templates.


Top ↑

Source

File: src/Tribe/Views/V2/Hooks.php

	public function filter_template_path_list( array $folders = [] ) {
		$folders[] = [
			'id'       => 'events-pro',
			'priority' => 25,
			'path'     => \Tribe__Events__Pro__Main::instance()->pluginPath . 'src/views/v2',
		];

		return $folders;
	}

Top ↑

Changelog

Changelog
Version Description
4.7.5 Introduced.