PUM_Shortcode::render_template()

Render the template based on shortcode classes methods.


Description Description


Source Source

File: classes/Shortcode.php

	public function render_template() {
		if ( $this->version >= 2 && $this->get_template() !== false ) {
			echo '<script type="text/html" id="tmpl-pum-shortcode-view-' . $this->tag() . '">';
			$this->style_block();
			$this->template();
			echo '</script>';
		} else {
			/** @deprecated, here in case shortcode doesn't yet have the new $this->template() method. */
			$this->_template();
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.