Created
November 16, 2016 02:51
-
-
Save jpen365/93a38981235c33b17bf4bd5d25e8e131 to your computer and use it in GitHub Desktop.
Use __construct() to define basic widget information.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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