woocommerce_upsell_display_args
Usage
add_filter( 'woocommerce_upsell_display_args', 'wp_kama_woocommerce_upsell_display_args_filter' ); /** * Function for `woocommerce_upsell_display_args` filter-hook. * * @param $array * * @return */ function wp_kama_woocommerce_upsell_display_args_filter( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_upsell_display_args
woocommerce/includes/wc-template-functions.php 2120-2128
$args = apply_filters( 'woocommerce_upsell_display_args', array( 'posts_per_page' => $limit, 'orderby' => $orderby, 'order' => $order, 'columns' => $columns, ) );