Created
May 18, 2021 05:59
-
-
Save wbcomdev/8c376200320735105486cf59433cc8b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * Change number of upsells output. | |
| */ | |
| function wb_change_number_related_products( $args ) { | |
| $args['posts_per_page'] = 1; | |
| $args['columns'] = 4; // change number of upsells here. | |
| return $args; | |
| } | |
| add_filter( 'woocommerce_upsell_display_args', 'wb_change_number_related_products', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment