Opened 5 months ago
Closed 5 months ago
#64446 closed enhancement (duplicate)
Add "Copy Permalink" action to post list table in admin
| Reported by: |
|
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:
- Go to wp-admin → Posts → All Posts
- Hover over any published post
- Click "Copy Permalink"
- 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)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Tested the patch on a local install. The "Copy Permalink" action works for posts, pages, and custom post types without PHP or JS errors.