1. Josh

    The advantage of widget logic (for developers) is that you can write custom boolean functions and then call them from widget logic. I’ve accomplished some pretty nifty things with this approach.

  2. @Josh – the downside is that there’s no security consideration in Widget Logic–it simply runs eval() on whatever is entered in the conditional field for the widget. Widget Visibility may be more limited for advanced developers, but it doesn’t provide a ready opportunity for arbitrary code execution.

  3. which is better in terms of usage and performance widget logic or widget context? I don’t use jetpack so I’m choosing between the two.

    1. Widget logic is bare bones but you’ll need to know how WordPress conditional statements work in order to use it.

Comments are closed.