Created
April 22, 2022 08:17
-
-
Save bradleysa/475163526fbce561edfb15bdd0a91f8f to your computer and use it in GitHub Desktop.
WC: Change Number of Cross-Sells on Cart Page
This file contains 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
add_filter( 'woocommerce_cross_sells_total', 'bbloomer_change_cross_sells_product_no' ); | |
function bbloomer_change_cross_sells_product_no( $columns ) { | |
return 2; | |
} | |
/** https://www.businessbloomer.com/woocommerce-move-change-number-cross-sells-cart-page/ **/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment