-
Posted a reply to Get Download link as it appears on My Account, on the site WordPress.org Forums:
function wc_get_product_download_permissions( $product_id ) { global $wpdb; $current_user = wp_get_current_user(); $current_user_ID = $current_user->ID; return $wpdb->get_results(… -
Posted a reply to Get Download link as it appears on My Account, on the site WordPress.org Forums:
Your code will make the website slow if the user have 1000+ downloadable.