'delivery-categories', 'description' => __( 'Display category list in a custom view.', 'delivery' ) ); // Create the widget. $this->WP_Widget( 'delivery-categories', // $this->id_base __( 'Delivery Categories', 'delivery' ), // $this->name $widget_options // $this->widget_options ); } /** * Outputs the widget based on the arguments input through the widget controls. * * @since 1.0.0 */ function widget( $args, $instance ) { extract( $args ); // Output the theme's $before_widget wrapper. echo $before_widget; // If the title not empty, display it. if ( $instance['title'] ) { echo $before_title . apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base ) . $after_title; } // Display the category list. echo '