Docs / Filter Reference / wpdm_template_path

wpdm_template_path

Description


As well as keeping edited template file in your active theme folder, your can keep template files any custom location you want, you simply need to introduce the new template dir using this filter hook

Parameters


Two arguments are passed to this hook.

Usage


To add new template dir:

<?php add_filter('wpdm_template_path','wpdm_new_template_dir',10,2); ?>

Examples


<?php 
add_filter( 'wpdm_template_path', 'wpdm_new_template_dir', 10, 2 );
function wpdm_custom_email_lock_heading( $template_dirs, $template_file ) {
    $template_dirs[] = "/new/template/dir/path/";
    return $template_dirs;
} 
?>

 

Last updated on January 26, 2026

Need Help?

Get support from our team or community forum.

Visit Support

Customization

Need custom features? We can help.

Request Quote