WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

For example, it makes them editable using the Front-end Editor plugin.

All the cool widgets are doing it:

http://core.trac.wordpress.org/browser/trunk/wp-includes/default-widgets.php

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.