• Hey,

    when using custom widget display settings by applying logic with the rw_display_widget() filter hook and activating the modification of the is_active_sidebar() WP function of your plugin, i realized that the modified display value of the filter has no effect on this part which results in an empty sidebar being display in the theme.

    So basically you’d need to call the restrict_widget() function with an enabled filters parameter in restrict-widgets.php on line 579 like so:

    $this->widgets[substr( $widget_id, 7 )] = $this->restrict_widget( $widget, true, array( 'widget_id' => substr( $widget_id, 7 ) ) );

    why is this not respecting the filter here?

    i modified the code to make it work with our project but would like to know if it has any side effects and if it doesn’t, if you’d add this change to the next plugin update.

    thanks!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘rw_display_widget filter and is_active_sidebar() modification’ is closed to new replies.