• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WooCommerce a2z

WooCommerce a2z

WooCommerce

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / ActionScheduler_ListTable::process_row_action() – Implements the logic behind processing an action once an action link is clicked on the list table.

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 );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 6th April 2020

Primary Sidebar

Information

Function name: ActionScheduler_ListTable::process_row_action
Class ref: ActionScheduler_ListTable
Plugin ref: WooCommerce
Version: 5.1.0
Sourcefile: packages/action-scheduler/classes/ActionScheduler_ListTable.php
File ref: packages/action-scheduler/classes/ActionScheduler_ListTable.php
API type: behind
Deprecated?: No
API Letters: A,L,P,R

Footer

WooCommerce a2z
WooCommerce a2z
WooCommerce
WordPress 5.7
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  woocommerce.wp-a2z.org
© Copyright WooCommerce a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites