Make WordPress Core

Opened 5 months ago

Closed 5 months ago

#64446 closed enhancement (duplicate)

Add "Copy Permalink" action to post list table in admin

Reported by: solankisoftware's profile solankisoftware Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords: has-patch
Focuses: ui Cc:

Description

Currently, copying a post or page permalink from the admin area requires opening the post or using the "View" link and copying the URL from the browser.

This ticket proposes adding a "Copy Permalink" action to the post list table in wp-admin. The action allows users to copy the permalink to the clipboard with a single click, improving editorial workflow and usability.

The change applies to:

  • Posts
  • Pages
  • All public custom post types

The implementation:

  • Adds a "Copy Permalink" row action in the admin post list table
  • Uses JavaScript to copy the permalink to the clipboard without page reload
  • Does not introduce any database changes

Accessibility considerations:

  • The action is implemented as a button element
  • Keyboard accessible
  • Includes appropriate screen-reader text

Steps to Reproduce:

  1. Go to wp-admin → Posts → All Posts
  2. Hover over any published post
  3. Click "Copy Permalink"
  4. Paste the link elsewhere

Expected Result:
The post permalink is copied to the clipboard and a confirmation message is displayed.

Actual Result:
Currently, WordPress does not provide a direct way to copy permalinks from the post list table.

Attachments (1)

copy-permalink-admin.patch (6.4 KB) - added by solankisoftware 5 months ago.
Tested the patch on a local install. The "Copy Permalink" action works for posts, pages, and custom post types without PHP or JS errors.

Download all attachments as: .zip

Change History (3)

@solankisoftware
5 months ago

Tested the patch on a local install. The "Copy Permalink" action works for posts, pages, and custom post types without PHP or JS errors.

#1 @solankisoftware
5 months ago

  • Keywords has-patch needs-testing added

#2 @sabernhardt
5 months ago

  • Focuses accessibility removed
  • Keywords needs-testing removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

#57597 already proposed adding a Copy Permalink button.

Note: See TracTickets for help on using tickets.