Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Pizdin Dim

    (@pizdin_dim)

    I had a look at the code and from what I can see there is no filtering on the widget text. If I modify the class-bjgk-genesis-enews-extended.php file like this, I can get the plugin to allow filtering on the text:

    104 $instance['text'] = apply_filters('widget_text', $instance['text'], $instance, $this->id_base);

    143 $instance['after_text'] = apply_filters('widget_text', $instance['after_text'], $instance, $this->id_base);

    Is that something the author of the plugin would consider for a future version?

    Plugin Author Brandon Kraft

    (@kraftbj)

    Code Wrangler

    I’m hesitant on adding the default widget_text filter. I could see confusion if other plugins add filtering intended for the default text widget being applied in this case.

    What are your thoughts on that?

    Generally, zero opposition to adding logical filters. Added to tracker at https://github.com/kraftbj/genesis-enews-extended/issues/115 , marking this as resolved to defer to the GitHub issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hooks for form text?’ is closed to new replies.