Thread Starter
tille
(@tille)
ok – found it: I hooked into the woocommerce_output_related_products_args filter – the priority (99) is important since some other function was probably always setting the number to 3. So now I have this in the functions.php of my storefront child theme:
add_filter( 'woocommerce_output_related_products_args', 'hff_commerce_child_related_products_args', 99, 3 );
function hff_commerce_child_related_products_args( $args ) {
// echo("RELATED :::");
$args = array(
'posts_per_page' => 4,
'columns' => 4,
'orderby' => 'DESC',
);
return $args;
}
…and it works…