You appear to be a bot. Output may be restricted
Description
Implements the logic behind processing an action once an action link is clicked on the list table.
Usage
ActionScheduler_ListTable::process_row_action( $action_id, $row_action_type );
Parameters
- $action_id
- ( int ) required –
- $row_action_type
- ( string ) required – The type of action to perform on the action.
Returns
void
Source
File name: woocommerce/packages/action-scheduler/classes/ActionScheduler_ListTable.php
Lines:
1 to 19 of 19
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 ); }