Automattic\WooCommerce\Internal\Admin\Orders

ListTable::current_action()publicWC 1.0

Gets the current action selected from the bulk actions dropdown.

Метод класса: ListTable{}

Хуков нет.

Возвращает

Строку|false. The action name. False if no action was selected.

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

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

Код ListTable::current_action() WC 7.3.0

public function current_action() {
	if ( ! empty( $_REQUEST['delete_all'] ) ) {
		return 'delete_all';
	}

	return parent::current_action();
}