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.

{} Это метод класса: ReviewsListTable{}

Хуков нет.

Возвращает

Строку|false.

Использование

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

Код ReviewsListTable::current_action() WC 6.8.0

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

	return parent::current_action();
}