customer downloadable products list newest on top
-
I give away a free file every day, which means my customers have a very long list of downloads, is there a way to put the latest one on top? currently, they are ordered from oldest to newest which means that they have to do a lot of scrolling to get their most recent download. I tried to add some code to functions.php but I got an error message that I had never seen before “BAILOUT malware detected”
The code I was trying to add was
function reverse_my_downloads_order( $downloads ) {
return array_reverse( $downloads );
}
add_filter( ‘woocommerce_customer_get_downloadable_products’, ‘reverse_my_downloads_oThe page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘customer downloadable products list newest on top’ is closed to new replies.