Created
March 2, 2017 20:20
-
-
Save themeblvd/c91c2edc82628a02254801b0e9068acb to your computer and use it in GitHub Desktop.
When using Theme Blvd Framework 2.5+ theme and WooCommerce, change number of related product columns (i.e. up-sells on single product pages).
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
<?php | |
/** | |
* Change number of related product columns | |
* on single product pages. | |
*/ | |
function my_up_sell_args( $args ) { | |
themeblvd_set_att( 'woo_product_columns', 2 ); | |
return $args; // Pass $args through untouched. | |
} | |
add_filter( 'themeblvd_woocommerce_up_sell_args', 'my_up_sell_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment