Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WooCommerce: My Account Orders Pagination - per page setting
<?php // don't copy this line
/**
* @snippet WooCommerce: My Account Orders Pagination - per page setting
* @source https://kybernaut.cz/?p=2896
* @author Karolína Vyskočilová (https://kybernaut.cz)
* @testedwith WordPress 5.2 & WooCommmerce 3.6.2
*/
// -------------------
function kbnt_my_account_orders( $args ) {
$args['posts_per_page'] = 15; // add number or -1 (display all orderes per page)
return $args;
}
add_filter( 'woocommerce_my_account_my_orders_query', 'kbnt_my_account_orders', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.