Created
July 14, 2021 04:10
-
-
Save anhnn-mageplaza/d63dc12ea59cf3564c02774d07a07ed6 to your computer and use it in GitHub Desktop.
Code to change product column per page in WooCommerce
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
// 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