[wp-hackers] anonymous functions for do_action and apply_filters

Leo germani leogermani at gmail.com
Mon Dec 20 21:11:49 UTC 2010


On Mon, Dec 20, 2010 at 6:59 PM, scribu <mail at scribu.net> wrote:

> >
> > add_filter('the_title', function($title) { return '<b>'. $title. '</b>';
> > });
> >
>
> Yes, this is already possbile in WP 3.0:
>
> http://core.trac.wordpress.org/ticket/10493
>
>
Excellent!!

Im gonna put a note on the codex page for add_filter and add_action about
this

cheers


More information about the wp-hackers mailing list