Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mohan Chevuri

    (@mchev2)

    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

    (@aaemnnosttv)

    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

    (@mchev2)

    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.