[wp-hackers] filters with multiple parameters?
Travis Snoozy
ai2097 at users.sourceforge.net
Mon Nov 19 15:33:20 GMT 2007
On Mon, 19 Nov 2007 09:20:21 -0600, Stephen Rider
<wp-hackers at striderweb.com> wrote:
> add_filter( 'bloginfo', 'my_bloginfo_filter' );
<snip>
> The hook itself (in core) looks like this:
>
> $output = apply_filters('bloginfo', $output, $show);
>
> How do I get $show in my filter function?
add_filter('bloginfo', 'my_bloginfo_filter', 10, 2); // [1]
--
Travis
In Series maintainer
Random coder & quality guy
<http://remstate.com/>
[1] http://codex.wordpress.org/Function_Reference/add_filter
More information about the wp-hackers
mailing list