Add filter to template loader

This commit is contained in:
Brian Miyaji
2016-05-24 16:36:20 +10:00
parent ff5cc0109c
commit 89c0e0a943

View File

@@ -71,6 +71,8 @@ class SP_Template_Loader {
// Combine layout setting with available templates
$templates = array_merge( array_flip( $layout ), SP()->templates->$type );
$templates = apply_filters( 'sportspress_' . $type . '_templates', $templates );
ob_start();