apply_filters( 'jb_pre_template_locations', $template_locations, $template_name, $module, $template_path ) → {array}
Filters the template locations array for WP native locate_template()
function.
Note: Handle locations array before multisite's blog ID path will be added. JobBoardWP uses this hook for integration with multilingual plugins.
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