woocommerce_upsells_order
Usage
add_filter( 'woocommerce_upsells_order', 'wp_kama_woocommerce_upsells_order_filter' ); /** * Function for `woocommerce_upsells_order` filter-hook. * * @param $args[order] * * @return */ function wp_kama_woocommerce_upsells_order_filter( $args[order] ){ // filter... return $args[order]; }
- $args[order]
- -
Where the hook is called
woocommerce_upsells_order
woocommerce/includes/wc-template-functions.php 2137
$order = apply_filters( 'woocommerce_upsells_order', isset( $args['order'] ) ? $args['order'] : $order );