Hi,
Thank you for the info. We hope this would be able to make it into a future release, but for the time being we have hard-coded in a solution that seems to be working for us
Here is our quick / dirty solution for anyone trying to accomplish something similar, or for the author to use as a starting point for making this a feature:
Line 129:
$user_dlc = (int)get_user_meta($current_user->ID,'wpdm_dd_user_dlc',true);
if(has_term(9,'wpdmcategory',$p['ID'])) {
$user_dlc++;
}
update_user_meta($current_user->ID,'wpdm_dd_user_dlc',$user_dlc);
We also changed the priority of some actions for more reliable checking of the taxonomy term:
add_action(“init”, “wpdm_common_actions”, 1);
and
add_action(‘wpdm_onstart_download’,’wpdm_dd_update_user_download’, 12);
Thank you