Created
October 13, 2016 18:13
-
-
Save thesadoo/51c24b311282b37aa11127401bdeb70b to your computer and use it in GitHub Desktop.
Show all the woocommerce orders in "my account" page (there is a limit after 2.6)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function woocommerce_show_all_the_orders_in_account($arr){ | |
$arr['limit'] = -1; | |
return $arr; | |
} | |
add_filter('woocommerce_my_account_my_orders_query', 'woocommerce_show_all_the_orders_in_account'); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment