Created
February 13, 2020 05:41
-
-
Save webtoffee-git/c3bff17c0a72dc24aeed02c7ca6f5633 to your computer and use it in GitHub Desktop.
Limit number of related products using WooCommerce Related Product by WebToffee
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('wt_related_products_number', function($number){ | |
return 4; // change the number here | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment