PHP code example of gnowland / wp-jet-fuel

1. Go to this page and download the library: Download gnowland/wp-jet-fuel 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/ */

    

gnowland / wp-jet-fuel example snippets


jetfuel('deselect-uncategorized');
shell
# functions.php
$lib_includes = [
  'lib/mods.php',
];

foreach ($lib_includes as $file) {
  if (!$filepath = locate_template($file)) {
    trigger_error(sprintf(__('Error locating %s for inclusion', 'your-textdomain'), $file), E_USER_ERROR);
  }