Description
If you want to change template data before loading the template, you can use this hook.
Parameters
One parameter is passed to this hook.
Usage
To change template data.
<?php add_filter('wdm_pre_render_link','my_template_data',10,1); ?>
Examples
<?php
add_filter('wdm_pre_render_link','my_template_data',10,1);
function my_template_data($package_data){
$package_data['new_tag'] = call_back_function();
//more of your code here
return $package_data;
}
?>