Title: Feature Request: Per-widget toggle
Last modified: August 21, 2016

---

# Feature Request: Per-widget toggle

 *  [Evan Mattson](https://wordpress.org/support/users/aaemnnosttv/)
 * (@aaemnnosttv)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/feature-request-per-widget-toggle/)
 * I really like this extension, but there are some cases where I would really prefer
   to use the normal Widget Logic .. logic.
 * It sure would be nice if each widget had the option to use path logic or WL logic.
   I realize this isn’t a simple request, but it sure would add to the value of 
   the plugin!
 * [https://wordpress.org/plugins/widget-logic-by-path/](https://wordpress.org/plugins/widget-logic-by-path/)

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

 *  Plugin Author [Mohan Chevuri](https://wordpress.org/support/users/mchev2/)
 * (@mchev2)
 * [12 years ago](https://wordpress.org/support/topic/feature-request-per-widget-toggle/#post-4698355)
 * Adding this line to your theme’s functions.php file will remove the link between
   Widget Logic and Widget Logic by Path.
 * `remove_filter( 'widget_logic_eval_override', array($widgetLogicByPath, 'evaluate'));`
 * Then Widget Logic can be used as usual, and if Widget Logic by Path is needed,
   it can be used in the following way.
 *     ```
       $wlp[] = "about/*";
       $wlp[] = "about/staff/*";
       $widgetLogicByPath->evaluate( implode("\n",$wlp) );
       ```
   
 * I did not get a chance to test this code, but it should work.
 * But keep in mind that one of the primary design goals behind this plugin was 
   to override eval and yet have the flexibility of Widget Logic with simplicity.
 *  Thread Starter [Evan Mattson](https://wordpress.org/support/users/aaemnnosttv/)
 * (@aaemnnosttv)
 * [12 years ago](https://wordpress.org/support/topic/feature-request-per-widget-toggle/#post-4698357)
 * Thanks Mohan,
 * I don’t really see how this is usable, your example seems incomplete. How could
   this be used on a per-widget basis?
 * Would it not be possible to simply add a radio button to the widget form for 
   choosing Widget Logic / Widget Logic by Path evaluation? It would need to default
   to “by path” for backwards compatibility, but is it not possible?
 *  Plugin Author [Mohan Chevuri](https://wordpress.org/support/users/mchev2/)
 * (@mchev2)
 * [12 years ago](https://wordpress.org/support/topic/feature-request-per-widget-toggle/#post-4698358)
 * Sorry, this plugin cannot handle the user interface piece of Widget Logic. It
   is only an add-on to Widget Logic (eval filter).

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

The topic ‘Feature Request: Per-widget toggle’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic-by-path.svg)
 * [Widget Logic by Path](https://wordpress.org/plugins/widget-logic-by-path/)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic-by-path/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic-by-path/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic-by-path/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic-by-path/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mohan Chevuri](https://wordpress.org/support/users/mchev2/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/feature-request-per-widget-toggle/#post-4698358)
 * Status: not resolved