PHP code example of mejta / wp-latte
1. Go to this page and download the library: Download mejta/wp-latte 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/ */
mejta / wp-latte example snippets
// wp-content/mu-plugins/load.php
// wp-content/mu-plugins/load.php
-latte.php';
// wp-content/themes/my-theme/functions.php
use NetteLatteEngine\NetteLatteEngine;
// https://latte.nette.org/en/guide#toc-user-defined-macros
NetteLatteEngine::addMacro('test', $start_php_code, $end_php_code);
// https://latte.nette.org/en/guide#toc-custom-filters
NetteLatteEngine::addFilter('test', $callback_function);