Is there any filter which can be used in a plugin to process the content of the text widget before it is rendered?
Leave a Reply
You must be logged in to post a comment.
Is there any filter which can be used in a plugin to process the content of the text widget before it is rendered?
You must be logged in to post a comment.
Filter
Example
Note that this works only for the content so not if you have a widget with only a title.
Reference
You should be able to run a filter on
widget_text
. The text widget is the only one that calls thewidget_text
hook.http://core.trac.wordpress.org/browser/tags/3.0.1/wp-includes/default-widgets.php
Line 380 ..
So in short, Yes! Would be the direct answer to your question. Hope that helps… 🙂