make upsells order filterable

This commit is contained in:
James Koster 2013-07-23 10:52:15 +01:00
parent 81f188b4ca
commit 0da6df8aed
1 changed files with 3 additions and 3 deletions

View File

@ -814,9 +814,9 @@ if ( ! function_exists( 'woocommerce_upsell_display' ) ) {
*/
function woocommerce_upsell_display( $posts_per_page = '-1', $columns = 2, $orderby = 'rand' ) {
woocommerce_get_template( 'single-product/up-sells.php', array(
'posts_per_page' => $posts_per_page,
'orderby' => $orderby,
'columns' => $columns
'posts_per_page' => $posts_per_page,
'orderby' => apply_filters( 'woocommerce_upsells_orderby', $orderby ),
'columns' => $columns
) );
}
}