Skip to content

Instantly share code, notes, and snippets.

@themeblvd
Created March 2, 2017 20:20
Show Gist options
  • Save themeblvd/c91c2edc82628a02254801b0e9068acb to your computer and use it in GitHub Desktop.
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).
<?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