WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 8 months ago

#37578 new enhancement

Dashboard Recent Activity widget - new filters to manipulate output

Reported by: Jonnyauk Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6
Component: Administration Keywords: has-patch
Focuses: ui, administration Cc:

Description

It is currently not possible to manipulate the recent post activity dashboard widget. Output is built using wp_dashboard_recent_posts(). 2 filters could be introduced for the parameters for future and recent posts.

This would allow easy interaction with the parameters array, for instance increasing the amount of posts shown, changing order, post status, CSS ID etc - would definitely make it more useful!

I realise that there is a filter dashboard_recent_posts_query_args inside thewp_dashboard_recent_posts() function (used to build the queries, useful for switching post type etc), but there is currently no way to interact with the calls to this function.

Attachments (1)

37578-01.diff (1.7 KB) - added by Jonnyauk 5 years ago.
New filters for Dashboard Recent Activity widget future and recent posts.

Download all attachments as: .zip

Change History (3)

@Jonnyauk
5 years ago

New filters for Dashboard Recent Activity widget future and recent posts.

#1 @Jonnyauk
5 years ago

  • Keywords has-patch added

This ticket was mentioned in Slack in #core by peterwilsoncc. View the logs.


8 months ago

Note: See TracTickets for help on using tickets.