Sort downloads by most recently purchased first in my account WooCommerce [closed]

You should be able to use the woocommerce_customer_get_downloadable_products filter and return the array of downloads in reversed order. function reverse_my_downloads_order( $downloads ) { return array_reverse( $downloads ); } add_filter( ‘woocommerce_customer_get_downloadable_products’, ‘reverse_my_downloads_order’ ); Add this code to your functions.php file of your active child-theme or theme. I didn’t test it, but it should work.

How do I create a filter to hide the One Click Accessibility plugin button in WordPress?

Get current page url and simply apply display none css on button based on current page inside wp_footer action for woocommerce pages you can use predefined functions like is_cart(),is_checkout()..(see code) just put below code inside your child theme functions.php file function hide_oneclick_toolbar() { if(is_cart() || is_checkout()) { ?> <style>#pojo-a11y-toolbar{display:none!important;}</style> <?php } } add_action(‘wp_footer’,’hide_oneclick_toolbar’); **hide by … Read more

Remove required from a custom field created from WooCommerce Checkout Field Editor plugin

I found a solution to the problem. This code remove the validation of the custom fields if the Local Pickup method is selected. add_action(‘woocommerce_after_checkout_validation’, ‘thwcfe_remove_unwanted_error’, 11, 2); function thwcfe_remove_unwanted_error($data, $errors){ if (isset($data[‘shipping_method’]) && $data[‘shipping_method’][0] == ‘ local_pickup:8’) { $errors->remove(‘ billing_region’); $errors->remove(‘ billing_cityalt’); } }