PHP code example of figuren-theater / ft-theming

1. Go to this page and download the library: Download figuren-theater/ft-theming 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/ */

    

figuren-theater / ft-theming example snippets


Figuren_Theater::API\get_...()

  add_post_type_support(
    'page',
    'post-type-templates',
    [
      'templates' => [
        'blank.php'=>'A blank canvas'
      ],
      'path'=>'ABSPATH_TO_TEMPLATE_DIRECTORY'
    ]
  );