August 2017
Beginner
412 pages
10h 30m
English
That's it for widget functionality! Now, you just need to add a little piece of code that will hook the widget up to the rest of WordPress:
function KK_Widget_Tag_Cloud_Reg() {
register_widget('KK_Widget_Tag_Cloud');
}
add_action('widgets_init', 'KK_Widget_Tag_Cloud_Reg');
This tells WordPress that when it initiates widgets, it should be sure to register our new widget.
Read now
Unlock full access