Tribe__Image__Plus__Main::admin_template( string $template )

Loads admin views, which aren’t “overrideable”, so no hierarchy.


Parameters #

$template

(string) (Required) Template file to search for.


Top ↑

Return #

(template) path


Top ↑

Source #

File: src/Tribe/Main.php

	public function admin_template( $template ) {

		// Whether or not .php was added.
		$template_slug = rtrim( $template, '.php' );
		$template      = $template_slug . '.php';

		return "{$this->plugin_path}src/admin-views/{$template}";
	}