WC_Admin_Webhooks_Table_List::process_bulk_action() – Process bulk actions.

You appear to be a bot. Output may be restricted

Description

Process bulk actions.

Usage

WC_Admin_Webhooks_Table_List::process_bulk_action();

Parameters

Returns

void

Source

File name: woocommerce/includes/admin/class-wc-admin-webhooks-table-list.php
Lines:

1 to 12 of 12
  public function process_bulk_action() {
    $action   = $this->current_action();
    $webhooks = isset( $_REQUEST['webhook'] ) ? array_map( 'absint', (array) $_REQUEST['webhook'] ) : array(); // WPCS: input var okay, CSRF ok.

    if ( ! current_user_can( 'manage_woocommerce' ) ) {
      wp_die( esc_html__( 'You do not have permission to edit Webhooks', 'woocommerce' ) );
    }

    if ( 'delete' === $action ) {
      WC_Admin_Webhooks::bulk_delete( $webhooks );
    }
  }
 

 View on GitHub View on Trac