Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Oscar-Abad-Folgueira/6a96ca7778d5439c5019b872555e4abb to your computer and use it in GitHub Desktop.
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
<?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