Skip to content

Commit

Permalink
Update hook for default templates list
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Sep 5, 2024
1 parent 1926f14 commit add2f75
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion components/Templates/Templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,17 @@ public static function template( $template_name, $code = null, $obj = null, $dep
$template_name . '.php',
);

$default_templates = apply_filters( 'pods_template_default_templates', $default_templates );
/**
* Allow filtering the list of default theme templates to check for a template.
*
* @since unknown
*
* @param string[] $default_templates The list of default theme templates to check for a template.
* @param string $template_name The template name.
* @param array $template The template information.
* @param Pods $obj The Pods object.
*/
$default_templates = apply_filters( 'pods_template_default_templates', $default_templates, $template_name, $template, $obj );

if ( empty( $obj->id ) ) {
while ( $obj->fetch() ) {
Expand Down

0 comments on commit add2f75

Please sign in to comment.