woocommerce_admin_order_milestone_statuses
Filter Order statuses that will count towards milestones.
Использование
add_filter( 'woocommerce_admin_order_milestone_statuses', 'wp_kama_woocommerce_admin_order_milestone_statuses_filter' ); /** * Function for `woocommerce_admin_order_milestone_statuses` filter-hook. * * @param array $allowed_statuses Order statuses that will count towards milestones. * * @return array */ function wp_kama_woocommerce_admin_order_milestone_statuses_filter( $allowed_statuses ){ // filter... return $allowed_statuses; }
- $allowed_statuses(массив)
- Order statuses that will count towards milestones.
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
woocommerce_admin_order_milestone_statuses
woocommerce/src/Internal/Admin/Notes/OrderMilestones.php 82
$this->allowed_statuses = apply_filters( 'woocommerce_admin_order_milestone_statuses', $this->allowed_statuses );