Automattic\WooCommerce\Internal\Admin\ProductReviews

ReviewsListTable::current_action()publicWC 1.0

Returns the current action select in bulk actions menu.

This is overridden in order to support delete_all for use in ReviewsListTable::process_bulk_action()

WP_Comments_List_Table::current_action() for reference.

Method of the class: ReviewsListTable{}

No Hooks.

Return

String|false.

Usage

$ReviewsListTable = new ReviewsListTable();
$ReviewsListTable->current_action();

ReviewsListTable::current_action() code WC 8.7.0

public function current_action() {
	if ( isset( $_REQUEST['delete_all'] ) || isset( $_REQUEST['delete_all2'] ) ) {
		return 'delete_all';
	}

	return parent::current_action();
}