apply_filters( 'jb_template_locations', $template_locations, $template_name, $module, $template_path ) → {array}
Filters the template locations array for WP native locate_template()
function.
Note: Final chance for getting customized the templates locations array.
Parameters:
Name | Type | Description |
---|---|---|
$template_locations |
array | Template locations array for WP native |
$template_name |
string | Template name. |
$module |
string | Module slug. (default: ''). |
$template_path |
string | Template path. (default: ''). |
- Since:
- 1.2.2 Added $module argument.
- Source:
Returns:
An array for WP native locate_template()
function with paths where we need to search for the $template_name.
- Type
- array