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.ww.wp.xz.cn/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)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Widget Text for widget content’ is closed to new replies.