Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save heldervilela/c3ab350abd6b46c61aa4212fdb19b6ad to your computer and use it in GitHub Desktop.
Save heldervilela/c3ab350abd6b46c61aa4212fdb19b6ad to your computer and use it in GitHub Desktop.
add_filter( 'woocommerce_upsell_display_args', 'custom_woocommerce_upsell_display_args' );
function custom_woocommerce_upsell_display_args( $args ) {
$args['posts_per_page'] = 5; // Change this number
$args['columns'] = 5; // This is the number shown per row.
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment