Title: @wordpress/undo-manager
Published: September 11, 2023
Last modified: October 9, 2026

---

# @wordpress/undo-manager

## In this article

 * [Installation](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#installation)
 * [API](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#api)
    - [createUndoManager](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#createundomanager)
 * [Contributing to this package](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#contributing-to-this-package)

[ Back to top](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#wp--skip-link--target)

A simple undo manager.

## 󠀁[Installation](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#installation)󠁿

Install the module

    ```bash
    npm install @wordpress/undo-manager --save
    ```

## 󠀁[API](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#api)󠁿

### 󠀁[createUndoManager](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#createundomanager)󠁿

Creates an undo manager.

_Returns_

 * `UndoManager< T >`: Undo manager.

## 󠀁[Contributing to this package](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-undo-manager/?output_format=md#contributing-to-this-package)󠁿

This is an individual package that’s part of the Gutenberg project. The project 
is organized as a monorepo. It’s made up of multiple self-contained software packages,
each with a specific purpose. The packages in this monorepo are published to [npm](https://www.npmjs.com/)
and used by [WordPress](https://make.wordpress.org/core/) as well as other software
projects.

To find out more about contributing to this package or Gutenberg as a whole, please
read the project’s main [contributor guide](https://github.com/WordPress/gutenberg/tree/HEAD/CONTRIBUTING.md).

First published

September 11, 2023

Last updated

October 9, 2026

Edit article

[ Improve it on GitHub: @wordpress/undo-manager ](https://github.com/WordPress/gutenberg/edit/trunk/packages/undo-manager/README.md)

[  Previous: @wordpress/ui](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-ui/)

[  Next: @wordpress/upload-media](https://developer.wordpress.org/block-editor/reference-guides/packages/packages-upload-media/)