WordPress.org

Make WordPress Core

Opened 17 months ago

Last modified 17 months ago

#37578 new enhancement

Dashboard Recent Activity widget - new filters to manipulate output

Reported by: Jonnyauk Owned by:
Milestone: Awaiting Review 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 17 months ago.
New filters for Dashboard Recent Activity widget future and recent posts.

Download all attachments as: .zip

Change History (2)

@Jonnyauk
17 months ago

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

#1 @Jonnyauk
17 months ago

  • Keywords has-patch added
Note: See TracTickets for help on using tickets.