Add filter to template loader
This commit is contained in:
@@ -72,6 +72,8 @@ class SP_Template_Loader {
|
|||||||
// Combine layout setting with available templates
|
// Combine layout setting with available templates
|
||||||
$templates = array_merge( array_flip( $layout ), SP()->templates->$type );
|
$templates = array_merge( array_flip( $layout ), SP()->templates->$type );
|
||||||
|
|
||||||
|
$templates = apply_filters( 'sportspress_' . $type . '_templates', $templates );
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
||||||
// Loop through templates
|
// Loop through templates
|
||||||
|
|||||||
Reference in New Issue
Block a user