Is there a need to do apply_filter(‘widget_title’, $instance[‘title’]) or any other ‘widget_xxx’ filters?

I am reading the book Professional WordPress, and have code like

$title = apply_filters('widget_title', $instance['title']);
$name = apply_filters('widget_name', $instance['name']);
...

I wonder if there really are filters like widget_xxx? What do they do?

Related posts

Leave a Reply

1 comment