Last active
August 29, 2015 14:13
-
-
Save jessepearson/814c5bb4276b2bd53bf5 to your computer and use it in GitHub Desktop.
Example from WordPress Codex for the Widget API
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 | |
| /** | |
| * Register widget with WordPress. | |
| */ | |
| function __construct() { | |
| parent::__construct( | |
| 'foo_widget', // Base ID | |
| __( 'Widget Title', 'text_domain' ), // Name | |
| array( 'description' => __( 'A Foo Widget', 'text_domain' ), ) // Args | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment