PHP code example of wenprise / template-render

1. Go to this page and download the library: Download wenprise/template-render library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

wenprise / template-render example snippets


new TemplateHelper($theme_path, $plugin_path)

$loader = new TemplateHelper('wenprise-term-list-block', WENPRISE_TERM_LIST_BLOCK_PATH . 'templates');
$loader->get_template('list.php', compact(['taxonomy', 'terms']));