'', 'number_of_posts' => 1, 'show_date' => '1', ); function __construct() { parent:: __construct( 'blogger_buzz_recent_posts', //Base ID esc_html__('BB : Recent Posts', 'blogger-buzz'), //Name array('description' => esc_html__('Displays Recent Blog Posts', 'blogger-buzz'),) //args ); } /** * Function to Creating widget front-end. This is where the action happens * * @access public * @since 1.0.0 * * @param array $args widget setting * @param array $instance saved values * * @return void * */ public function widget( $args, $instance ) { $instance = wp_parse_args((array)$instance, $this->defaults); $blog_title = $instance['title']; $number_of_posts = $instance['number_of_posts']; $show_date = $instance['show_date']; echo $args['before_widget']; ?>
/>