Snippets: Display Related WooCommerce Items In Random Order

function my_random_woo_related_products( $args ) {
	$args['orderby'] = 'rand';
	$args['post__in'] = null;
	return $args;
}
add_filter( 'woocommerce_related_products_args', 'my_random_woo_related_products' );
All PHP snippets should be added via a child theme's functions.php file.