apply_filters( 'um_email_templates_path_by_slug', $paths ) → {array}
Filters extend email templates path.
Parameters:
Name | Type | Description |
---|---|---|
$paths |
array | Email templates paths. |
- Since:
- 2.0
- Source:
Returns:
Email templates paths.
- Type
- array
Example
function my_email_templates_path_by_slug( $paths ) {
// your code here
$paths['{template_name}'] = '{template_path}';
return $paths;
}
add_filter( 'um_email_templates_path_by_slug', 'my_email_templates_path_by_slug' );