wdm_pre_render_link
1 min read
Updated Jan 26, 2026
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;
}
?>