I need to see the source file for the admin dashboard widget that shows recent comments, can anyone point me to the exact php file that does this? I can't find it anywhere on the codex or in google searches.


2 Answers 2


It’s located under wp-admin/includes/dashboard.php on line 612 and the function which calls the widget is wp_dashboard_recent_comments().


This is what I do in this situations:

1) Inspect the element

enter image description here

2) Do a global search within my local WP copy

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.