Filter: clarkson_twig_template_dir

apply_filters( 'clarkson_twig_template_dir', $template_dir ) → {string}

Modify the template directory path.
Parameters:
Name Type Description
$template_dir string Path to the template directory.
Since:
  • 0.1.0
Source:
Returns:
Path to template directory.
Type
string
Example
// It is possible to customise the place twig looks for templates.
add_filter( 'clarkson_twig_template_dir', function( $template_dir ) {
 return get_template_directory() . '/twig_templates';
} );