ActionScheduler_Abstract_ListTable::bulk_delete()
Default code for deleting entries. validated already by process_bulk_action()
Method of the class: ActionScheduler_Abstract_ListTable{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->bulk_delete( $ids, $ids_sql );
- $ids(array) (required)
- ids of the items to delete.
- $ids_sql(string) (required)
- the sql for the ids.
ActionScheduler_Abstract_ListTable::bulk_delete() ActionScheduler Abstract ListTable::bulk delete code WC 9.3.1
protected function bulk_delete( array $ids, $ids_sql ) { $store = ActionScheduler::store(); foreach ( $ids as $action_id ) { $store->delete( $action_id ); } }