Main Menu
Sub Menu

wpdm_package_files – Manipulate WordPress Download Manager Package file list

Description


Use this filter to manipulate like change order, hiding any specific file before showing the attached file list at frontend

Parameters


Two parameters are passed to this hook.

Usage


To add a new menu with author dashboard.

<?php add_filter('wpdm_package_files','wpdm_reorder_files',10,2);  ?>

Examples


<?php
add_filter('wpdm_package_files','wpdm_reorder_files',10,2);
// $menu_items is an array containing current menu items
function wpdm_reorder_files($files, $package){ 
//Code to change file list order 
return $files;
}
?>
Last updated on Jul 25, 2022

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.