The new Site Activity dashboard widget defaults to showing 5 comments. I’d like to show 10.
I can see the code in core /wp-admin/includes/dashboard.php
where it calls the function wp_dashboard_site_activity
, and uses wp_dashboard_recent_comments ( $total_items = 5 )
. But I don’t know the syntax to hook into this function to update it.
I know how to create a custom functionality plugin & edit functions.php
, I’m just unsure of the syntax and/or hook to use.
Any help is greatly appreciated. Thanks.
Seems like there is no filter for this (yet), but you can unregister the default activity widget and register (within your functions, or even better within your plugin as recommended by Dave Warfel) a similar activity widget with your custom settings: