• 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)
  • 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!

    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.