wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_dashboard_recent_comments_widget › WordPress Function

Since7.2.0
Deprecatedn/a
› wp_dashboard_recent_comments_widget ( No parameters )
Defined at:
Codex:

Outputs the Recent Comments dashboard widget.

Callback function for {@see 'dashboard_recent_comments'}.


Source

function wp_dashboard_recent_comments_widget() {
	if ( ! wp_dashboard_recent_comments( 5, false ) ) {
		echo '<p>' . esc_html__( 'No comments to show.' ) . '</p>';
	}
}