__( 'Use widget to add contact form in sidebars, footers, etc.', 'ap-contact-form' ), ) ); } // Creating widget front-end // This is where the action happens public function widget($args, $instance) { $title = apply_filters( 'widget_title', $instance['title'] ); // before and after widget arguments are defined by themes echo $args['before_widget']; if ( !empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; // This is where you run the code and display the output //echo __( 'Hello, World!', 'ap-contact-form' ); ?>