Filter: clarkson_twig_stylesheet_dir

apply_filters( 'clarkson_twig_stylesheet_dir', $stylesheet_dir ) → {string}

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