View::send_html( null|string $html = null )
Sends, echoing it and exiting, the view HTML on the page.
Contents
Parameters
- $html
-
(null|string) (Optional) A specific HTML string to print on the page or the HTML produced by the view
get_htmlmethod.Default value: null
Source
File: src/Tribe/Views/V2/View.php
public function send_html( $html = null ) {
$html = null === $html ? $this->get_html() : $html;
echo $html;
tribe_exit( 200 );
}
Changelog
| Version | Description |
|---|---|
| 4.9.2 | Introduced. |