Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Code to change product column per page in WooCommerce
// Change the Number of Columns Displayed Per Page
add_filter( 'loop_shop_columns', 'lw_loop_shop_columns' );
function lw_loop_shop_columns( $columns ) {
$columns = 5;
return $columns;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment