woocommerce_upsell_display_args хук-фильтр . WC 1.0
Handle the legacy filter which controlled posts per page etc.
Использование
add_filter( 'woocommerce_upsell_display_args', 'filter_function_name_1400' ); function filter_function_name_1400( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_upsell_display_args
woocommerce/includes/wc-template-functions.php 1995-2003
$args = apply_filters( 'woocommerce_upsell_display_args', array( 'posts_per_page' => $limit, 'orderby' => $orderby, 'order' => $order, 'columns' => $columns, ) );