Title: Modifying widget content via plugin?
Last modified: August 19, 2016

---

# Modifying widget content via plugin?

 *  [perad](https://wordpress.org/support/users/perad/)
 * (@perad)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/modifying-widget-content-via-plugin/)
 * Hello,
 * I have written a plugin that finds and replaces a string with a special drop 
   down box in a posts or pages content. I used the ‘the_content’ action/filter/
   hook to do this. It is working great.
 * I would also like this plugin to affect text based widgets created by the site
   owner. These do not use the_content hook. What hook do they use? How can I get
   my find/replace plugin to effect the content of text widgets?
 * Thanks

Viewing 1 replies (of 1 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [16 years, 12 months ago](https://wordpress.org/support/topic/modifying-widget-content-via-plugin/#post-1081317)
 * my plugin
 * [http://wordpress.org/extend/plugins/widget-logic/other_notes/](http://wordpress.org/extend/plugins/widget-logic/other_notes/)
 * has an option that creates a ‘widget_content’ filter that applies to all widgets.

Viewing 1 replies (of 1 total)

The topic ‘Modifying widget content via plugin?’ is closed to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [16 years, 12 months ago](https://wordpress.org/support/topic/modifying-widget-content-via-plugin/#post-1081317)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
