Main Menu
Sub Menu

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 Feb 22, 2023

Need More Clarification?

For any technical issue, if you are already using pro version please post in pro forum and free version users please post in free forum. Otherwise, if you have any pre-sale or order related query please contact live chat support team. For technical support.

Need Customization?

If you need additional customization on WordPress Download Manager or any type of custom support on WordPress you may contact our customization service.