Promo::action_add_promo_banner( string $file, array $name, TribeEventsViewsV2TemplateTemplate $template )

Include the promo banner after the after component.


Parameters

$file

(string) (Required) Complete path to include the PHP File.

$name

(array) (Required) Template name.

$template

(TribeEventsViewsV2TemplateTemplate) (Required) Current instance of the Template.


Top ↑

Return

(void) Template render has no return.


Top ↑

Source

File: src/Tribe/Views/V2/Template/Promo.php

	public function action_add_promo_banner( $file, $name, $template ) {
		if ( ! tribe_get_option( 'donate-link', false ) ) {
			return;
		}

		tribe_events_promo_banner();
	}

Top ↑

Changelog

Changelog
Version Description
5.1.5 Introduced.