Skip to content

Instantly share code, notes, and snippets.

@jpen365
Created November 16, 2016 02:51
Show Gist options
  • Save jpen365/93a38981235c33b17bf4bd5d25e8e131 to your computer and use it in GitHub Desktop.
Save jpen365/93a38981235c33b17bf4bd5d25e8e131 to your computer and use it in GitHub Desktop.
Use __construct() to define basic widget information.
<?php
public function __construct() {
$widget_options = array(
'classname' => 'example_widget',
'description' => 'This is an Example Widget',
);
parent::__construct( 'example_widget', 'Example Widget', $widget_options );
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment