'Test widget.' ) ); } /** * Outputs the content for the widget instance. * * @param array $args Display arguments including 'before_title', 'after_title', * 'before_widget', and 'after_widget'. * @param array $instance Settings for the current Block widget instance. */ public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); echo $args['before_widget']; if ( ! empty( $title ) ) { echo $args['before_title'] . $title . $args['after_title']; } echo 'Hello Test Widget'; echo $args['after_widget']; } /** * Outputs the widget settings form. * * @param array $instance Current instance. */ public function form( $instance ) { ?>