woocommerce_upsells_orderby

woocommerce_upsells_orderby

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_upsells_orderby') is found 1 times:

  • /includes/wc-template-functions.php line 2120
    		);
    		wc_set_loop_prop( 'name', 'up-sells' );
    		wc_set_loop_prop( 'columns', apply_filters( 'woocommerce_upsells_columns', isset( $args['columns'] ) ? $args['columns'] : $columns ) );
    
    		$orderby = apply_filters( 'woocommerce_upsells_orderby', isset( $args['orderby'] ) ? $args['orderby'] : $orderby );
    		$order   = apply_filters( 'woocommerce_upsells_order', isset( $args['order'] ) ? $args['order'] : $order );
    		/**
    		 * Filter the number of upsell products should on the product page.
    		 *
    		 * @param int $limit number of upsell products.
    		 * @since 3.0.0