public function __construct() {} // output the widget content on the front-end public function widget( $args, $instance ) {} // output the option form field in admin Widgets screen public function form( $instance ) {} // save options public function update( $new_instance, $old_instance ) {} }
constructor public function __construct() { parent::__construct( 'meetup_widget1', // Base ID esc_html__( 'Widget Meetup 1', 'scot3004' ), // Name array( 'description' => esc_html__( 'Es un simple hola mundo', 'scot3004' ), ) // Args ); } // output the widget content on the front-end public function widget( $args, $instance ) { echo 'hola mundo'; } }