apply_filters( 'tribe_template_pre_html', string $html, string $file, array $name, self $template, array<string,mixed> $context )

Allow users to filter the HTML before rendering


Parameters

$html

(string) The initial HTML

$file

(string) Complete path to include the PHP File

$name

(array) Template name

$template

(self) Current instance of the Tribe__Template

$context

(<span class="array">array) The context data passed to the template.


Top ↑

Source

File: src/Tribe/Template.php


Top ↑

Changelog

Changelog
Version Description
5.2.0 Added the $context parameter; take charge of rendering the filtered HTML.
4.11.0 Introduced.