Template::render( array $context_overrides = array() )
Renders and returns the View template contents.
Contents
Parameters
- $context_overrides
-
(array) (Optional) Any context data you need to expose to this file
Default value: array()
Return
(string) The rendered template contents.
Source
File: src/Tribe/Views/V2/Template.php
public function render( array $context_overrides = [] ) {
$context = wp_parse_args( $context_overrides, $this->context );
$context['_context'] = $context;
return parent::template( $this->slug, $context, false );
}
Changelog
| Version | Description |
|---|---|
| 4.9.2 | Introduced. |