Usage

How to install WP Notepad and use each feature.

Installation

  1. In the WordPress admin, go to Plugins → Add New.
  2. Search for “WP Notepad”, install and activate it.
  3. Or upload the distribution zip via “Upload Plugin” and activate.

Requirements: WordPress 6.0+ / PHP 7.1+.

Usage

1. Classic widget

Go to Appearance → Widgets and add the Notepad widget to a widget area. Settings:

  • Title / Description
  • Number of tabs (1 = no tabs)
  • Auto-delete after (days) (0 = never)

2. Block

Insert the “WP Notepad” block in the post/page editor. You can enter a title and description, and adjust the following under “Notepad settings” in the sidebar:

  • Placeholder text / minimum height (px) / maximum characters
  • Show character count (on/off)
  • Number of tabs / auto-delete days

Color, font size, line height, spacing and alignment (wide/full) can be set with the standard block editor controls.

3. Shortcode

Add [wpnotepad] to content or theme templates. Attributes:

AttributeDescription
idStorage key (recommended when using more than one; auto-generated if omitted)
placeholderPlaceholder text
min_heightMinimum height (px)
max_lengthMaximum characters (0 = unlimited)
show_countShow character counter (true/false)
tabsNumber of tabs (1 = no tabs)
ttlAuto-delete after this many days (0 = never)
labelAccessible label (aria-label) for the textarea

Example:

[wpnotepad id="my-note" placeholder="Jot something down" tabs="3" ttl="30"]

Notepad features

  • Auto-save & restore: notes save to the browser as you type and are restored on return.
  • Character counter: shows the character count below the textarea.
  • Auto-grow: the textarea expands to fit its content.
  • Copy / Download / Import: copy to clipboard, save as .txt, or load from a file.
  • Clear: empties the note after a confirmation and removes the stored data.
  • Tabs: keep multiple notes in one notepad and switch between them.
  • Note expiry (TTL): notes older than the configured number of days are removed on next load.

Cross-device sync (opt-in)

Disabled by default. When an administrator enables “cross-device sync” under Settings → WP Notepad, logged-in users’ notes are stored in their account (user meta) and synced across devices via the REST API.

  • Only logged-in users are synced; guests always stay browser-only.
  • On conflict, the note with the newer timestamp wins (last-write-wins).
  • While disabled, notes are never stored on the server.

Related pages

Copied title and URL