woocommerce_cross_sells_orderby

woocommerce_cross_sells_orderby

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_cross_sells_orderby') is found 1 times:

  • /includes/wc-template-functions.php line 2221
    		wc_set_loop_prop( 'name', 'cross-sells' );
    		wc_set_loop_prop( 'columns', apply_filters( 'woocommerce_cross_sells_columns', $columns ) );
    
    		// Handle orderby and limit results.
    		$orderby     = apply_filters( 'woocommerce_cross_sells_orderby', $orderby );
    		$order       = apply_filters( 'woocommerce_cross_sells_order', $order );
    		$cross_sells = wc_products_array_orderby( $cross_sells, $orderby, $order );
    		/**
    		 * Filter the number of cross sell products should on the product page.
    		 *
    		 * @param int $limit number of cross sell products.