[wp-trac] [WordPress Trac] #28442: New filter for post status links (in admin)

WordPress Trac noreply at wordpress.org
Tue Jun 3 16:42:22 UTC 2014


#28442: New filter for post status links (in admin)
-------------------------+-----------------------------
 Reporter:  khromov      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 I'm proposing the addition of a filter, "post_status_links", to let
 plugins modify the post status links, as displayed in this picture:

 [[https://dl.dropboxusercontent.com/u/2758854/post-status-links.png]]

 There is already exactly this type of filter in class-wp-comments-list-
 table.php called "comment_status_links", which you can see here:
 https://core.trac.wordpress.org/browser/trunk/src/wp-admin/includes/class-
 wp-comments-list-table.php#L200

 I am proposing we add this to posts as well, and possibly to all the admin
 list templates at some point.

 There are multiple use cases here, such as changing the post counts,
 adding custom links, hiding some of the links.

 Attached you will find a diff again trunk.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28442>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list