'widget_comments_wrap', 'description' => __( 'Good - Recent Comments', 'good' ) ) ); } public function widget( $args, $instance ) { $default = array( 'widget_title' => __( 'Latest Comments', 'good' ), 'quantity' => '5' ); $instance = wp_parse_args( $instance, $default ); $widget_title = apply_filters( 'widget_title', $instance['widget_title'] ); $quantity = $instance['quantity']; echo $args['before_widget']; ?>
$quantity, 'status' => 'approve' ) ); foreach ( $recent_comments as $comment ) { ?>

comment_post_ID ); ?>

__( 'Latest Comments', 'good' ), 'quantity' => '5' ); $instance = wp_parse_args( $instance, $default ); $widget_title = $instance['widget_title']; $quantity = $instance['quantity']; ?>