ActionScheduler_Store::cancel_actions_by_group()
Cancel pending actions by group.
Метод класса: ActionScheduler_Store{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$ActionScheduler_Store = new ActionScheduler_Store(); $ActionScheduler_Store->cancel_actions_by_group( $group );
- $group(строка) (обязательный)
- Group slug.
Список изменений
С версии 3.0.0 | Введена. |
Код ActionScheduler_Store::cancel_actions_by_group() ActionScheduler Store::cancel actions by group WC 9.2.3
public function cancel_actions_by_group( $group ) { $action_ids = true; while ( ! empty( $action_ids ) ) { $action_ids = $this->query_actions( array( 'group' => $group, 'status' => self::STATUS_PENDING, 'per_page' => 1000, 'orderby' => 'none', ) ); $this->bulk_cancel_actions( $action_ids ); } }