Title: Widget Text for widget content
Last modified: August 22, 2016

---

# Widget Text for widget content

 *  [Amit Kvint](https://wordpress.org/support/users/webifish/)
 * (@webifish)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/widget-text-for-widget-content/)
 * I am trying to do that:
 * public function widget( $args, $instance ) {
    $title = apply_filters( ‘widget_title’,
   $instance[‘title’] ); $content = apply_filters( ‘widget_text’, $instance[‘content’]);
 * Using apply_filters( ‘widget_text’ ([http://codex.wordpress.org/Plugin_API/Filter_Reference/widget_text](http://codex.wordpress.org/Plugin_API/Filter_Reference/widget_text))
 * Thing is only the ‘title’ works but the ‘content’ does not seem to work. The 
   documentation is very un clear it says ‘May also apply to some third party widgets
   as well’
 * Does anyone have an idea / experience with the ‘widget_text’ filter?
 * Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Lucas Karpiuk](https://wordpress.org/support/users/karpstrucking/)
 * (@karpstrucking)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/widget-text-for-widget-content/#post-5722357)
 * Hi Amit,
 * It’s not clear what you’re attempting to accomplish – can you be more specific,
   and include your entire widget code? (Either wrap your code in backticks for 
   formatting or link to a service like pastebin.)
 * Thanks!
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/widget-text-for-widget-content/#post-5722391)
 * what are you expecting that the filter should do?
 * as is, in a default WordPress installation, there is no function applied to that
   filter.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Widget Text for widget content’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 3 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/widget-text-for-widget-content/#post-5722391)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
