Last active
May 10, 2020 11:58
-
-
Save Oscar-Abad-Folgueira/6a96ca7778d5439c5019b872555e4abb to your computer and use it in GitHub Desktop.
Snippet para cambiar el número de productos por línea que se muestran en 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
<?php | |
/** | |
* @snippet Cambiar el número de productos por línea en WooCommerce | |
* @author Oscar Abad Folgueira | |
* @author_url https://www.oscarabadfolgueira.com | |
* @snippet_url https://www.oscarabadfolgueira.com/cambiar-el-numero-de-productos-por-fila-en-woocommerce/ | |
*/ | |
add_filter('loop_shop_columns', 'loop_columns', 999); | |
if (!function_exists('loop_columns')) { | |
function loop_columns() { | |
return 6; // 6 productos por fila | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment