Skip to content

Instantly share code, notes, and snippets.

@thesadoo
Created October 13, 2016 18:13
Show Gist options
  • Save thesadoo/51c24b311282b37aa11127401bdeb70b to your computer and use it in GitHub Desktop.
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)
<?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