Do WordPress widget (or sidebar) hooks exist?

Posted by Jeff on Stack Overflow See other posts from Stack Overflow or by Jeff
Published on 2009-09-06T15:39:48Z Indexed on 2010/03/22 1:41 UTC
Read the original article Hit count: 407

Filed under:

I'm trying to filter ALL widget output through a simple filter, but can't find any hooks and was hoping to be pointed in the right direction. Or possibly my efforts are not even possible?

My simple filter is something like this:

function clean_widget_output( $input ) {
    return str_replace( array( "\t", "\n", "\r" ), '', $input );
}

add_[FILTER OR ACTION]( 'need_a_hook', 'clean_widget_output', 99 );

Any ideas? I'm pretty new to PHP, but I can get around.

© Stack Overflow or respective owner

Related posts about Wordpress