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(); } }
Expand full source code Collapse full source code View on Trac