Created
November 16, 2016 03:43
-
-
Save jpen365/b99ae2f18025ca816600536836a61674 to your computer and use it in GitHub Desktop.
Add the new widget using the widgets_init hook
This file contains 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 | |
function jpen_register_example_widget() { | |
register_widget( 'jpen_Example_Widget' ); | |
} | |
add_action( 'widgets_init', 'jpen_register_example_widget' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment