WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 4 years ago

#9172 closed enhancement (fixed)

Filter action links for posts, pages, categories, link categories, tags and users screens

Reported by: jamescollins Owned by:
Milestone: 2.9 Priority: normal
Severity: normal Version: 2.8
Component: Administration Keywords: has-patch
Focuses: Cc:

Description

In #7212, a simple filter was added to filter the action links for comments.

This should also be done for posts, pages, categories, link categories, tags and users.

Attachments (3)

9172.diff (3.1 KB) - added by jamescollins 5 years ago.
Patch against r10593
9172.2.diff (726 bytes) - added by johnbillion 5 years ago.
diff (595 bytes) - added by holizz 4 years ago.
Add media_row_actions filter to all media items (against r12207)

Download all attachments as: .zip

Change History (12)

jamescollins5 years ago

Patch against r10593

comment:1 jamescollins5 years ago

  • Keywords has-patch added

Simple patch attached.

comment:2 jamescollins5 years ago

  • Summary changed from Filter action links for posts, pages, categories, link categories, tags and users to Filter action links for posts, pages, categories, link categories, tags and users screens

To clarify, this will allow plugins to override the list of quick links displayed in the dashboard.

For example, I am trying to write a plugin that in certain circumstances removes the "Quick Edit" link on the Pages -> Edit screen (/wp-admin/edit-pages.php).

This is currently possible on the Comments screen, but not on any of the other screens.

As far as I can tell, the attached patch doesn't change any existing behaviour(s), so I'd like to see this patch included in WP 2.8.

Thanks.

comment:3 ryan5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [10629]) Filter row actions. Props jamescollins. fixes #9172

comment:4 johnbillion5 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

This is a great patch, in fact I was writing the exact same patch until I remembered to update my working copy of trunk and realised jamescollins had beaten me to it by a week!

One action list has been missed though, the one on the 'Media' page.

johnbillion5 years ago

comment:5 johnbillion5 years ago

Patch for the above

comment:6 ryan5 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [10686]) Add media_row_actions filter. Props johnbillion. fixes #9172

comment:7 holizz4 years ago

  • Resolution fixed deleted
  • Status changed from closed to reopened

The patch provided above only provides a 'media_row_actions' filter for the "Unattached" view of the media library. Here's a patch that adds it to the other views too.

holizz4 years ago

Add media_row_actions filter to all media items (against r12207)

comment:8 scribu4 years ago

  • Milestone changed from 2.8 to 2.9
  • Version changed from 2.7 to 2.8

comment:9 ryan4 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed

(In [12221]) Add media_row_actions filter. Props holizz. fixes #9172

Note: See TracTickets for help on using tickets.