Main Menu
Sub Menu

wdm_before_fetch_template

Description


This hook is triggered before loading template for package. If you want to add/edit before loading template file, you can use this hook.

Parameters


One argument is passed to this hook.

Usage


To change template data.

<?php add_filter('wdm_before_fetch_template','my_fetch_template',10,3); ?>

Examples

<?php 
add_filter('wdm_before_fetch_template','my_fetch_template', 10, 3); 

function my_fetch_template($vars) { 
    //your code here 
    $vars['new_tag'] = callback_function(); //<--- implement the callback function
    $vars['another_tag'] = 'tag value';
    return $vars; 
} 
?>

Now you can use [another_tag] in your link or page template which will show the tag value at front-end.

Related


Last updated on Feb 6, 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.