Filter: jb_save_email_templates_locations

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

Filters the email templates locations on save handler.

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