Filter: jb_pre_template_locations_common_locale_integration

apply_filters( 'jb_pre_template_locations_common_locale_integration', $template_locations, $template_name, $module, $template_path ) → {array}

Filters the template locations array for WP native locate_template() function.

Note: Internal JobBoardWP hook for getting individual multilingual location in the common integration function.

Parameters:
Name Type Description
$template_locations array

Template locations array for WP native locate_template() function.

$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