$title */ class Title_Widget extends WP_Widget { function __construct() { parent::__construct( 'title_widget', // Root id for all widgets of this type. __('Title Widget', 'bigblank'), // Name for this widget type. array('description' => __('Widget Adds Title with a Heading tag', 'bigblank'),) // Option array passed to wp_register_sidebar_widget() ); } public function widget($args, $instance) { $title = apply_filters('widget_title', $instance['title']); if (!empty($title)) echo '