ActionScheduler_ListTable::process_row_action()
Implements the logic behind processing an action once an action link is clicked on the list table.
Метод класса: ActionScheduler_ListTable{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->process_row_action( $action_id, $row_action_type );
- $action_id(int) (обязательный)
- -
- $row_action_type(строка) (обязательный)
- The type of action to perform on the action.
Код ActionScheduler_ListTable::process_row_action() ActionScheduler ListTable::process row action WC 7.7.0
protected function process_row_action( $action_id, $row_action_type ) { try { switch ( $row_action_type ) { case 'run' : $this->runner->process_action( $action_id, 'Admin List Table' ); break; case 'cancel' : $this->store->cancel_action( $action_id ); break; } $success = 1; $error_message = ''; } catch ( Exception $e ) { $success = 0; $error_message = $e->getMessage(); } set_transient( 'action_scheduler_admin_notice', compact( 'action_id', 'success', 'error_message', 'row_action_type' ), 30 ); }