woocommerce_trash_pending_orders_query_args хук-фильтр . WC 1.0
Использование
add_filter( 'woocommerce_trash_pending_orders_query_args', 'filter_function_name_8861' ); function filter_function_name_8861( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
woocommerce_trash_pending_orders_query_args
woocommerce/includes/class-wc-privacy.php 172-180
apply_filters( 'woocommerce_trash_pending_orders_query_args', array( 'date_created' => '<' . strtotime( '-' . $option['number'] . ' ' . $option['unit'] ), 'limit' => $limit, // Batches of 20. 'status' => 'wc-pending', 'type' => 'shop_order', ) )