Filter: jb_get_template

apply_filters( 'jb_get_template', $template, $template_name, $args, $module, $template_path, $default_path ) → {string}

Filters the template location.

Note: Allow 3rd party plugin filter template file from their plugin.

Parameters:
Name Type Description
$template string

Predefined template location. That has been found via the JB()->locate_template() function.

$template_name string

Template name.

$args array

Arguments passed for the template.

$module string

Module slug. (default: '').

$template_path string

Template path. (default: '').

$default_path string

Default path. (default: '').

Since:
  • 1.2.2 Added $module argument.
Source:
Returns:

Maybe a custom location for the $template_name.

Type
string