Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make…
About Widget Logic
This plugin adds a control field to each widget that allows you to control on which pages the widget will appear. You can use conditional tags or PHP code in this field. However, please note that anyone with access to edit widget appearance will be able to add any code, including malicious code.Frequently asked questions
What is Widget Logic?
How does Widget Logic work with the Gutenberg editor?
What is the 'wp_reset_query' fix option?
Are there any pre-installed widgets?
Changelog
6.0.4
- load of External Services only when Live Match widget used
6.0.3
- added settings option for enable new functionality
6.0.2
- fixed bug for php7.2
6.0.1
- Bug fixes
6.0.0
- Gutenberg widgets editor added
- Pre-installed widgets added (Live Match)
- Bug fixes
- Code cleanup
5.10.4
- Security update. The export feature has been protected with nonce.
5.10.3
- Security update. Huge thanks to the Plugin Vulnerabilities Team!
5.10.2
- The plugin’s security has been improved, big thanks to Paul Dannewitz for his excellent security audit!
- The widget_content filter option has been removed from the settings block, but kept in the code for backward compatibility. The plan is to remove it completely and make the plugin simpler (let us know what you think).
- Code cleanup.
5.9.0
wp_reset_query works better under certain conditions.
5.8.2
The code has been adapted to work on the servers with restricted <?=
Fixed support for the wp_register_sidebar_widget widgets.
Some content was prepared for translation.
5.8.1
Fixed the issue of displaying errors under certain conditions.
5.8.0
Added full support for WP customizer.
In case of a fatal error in logic, the widget will not be displayed.
5.7.4
Fixed the “Warning: Attempt to assign property of non-object” bug.
https://wordpress.org/support/topic/latest-update-seems-break-my-installation/
5.7.3
Fixed the issue when in some cases the plugin displayed user logic errors in the Widgets section and this didn’t allow to save the widgets.
https://wordpress.org/support/topic/an-error-has-occurred-please-reload-the-page-and-try-again-3/
Fixed ini_set() related warnings for some rare hosting configurations.
https://wordpress.org/support/topic/ini_set-diabled-warning/
5.7.2
Removed conflicts with outdated WP versions.
5.7.1
Fixed the settings form not being saved settings under some circumstances.
Added a setting to show logic code errors for admins (turned off by default).
Fixed the issue with quotes in error messages on some WP installations.
5.7.0
Fixed PHP 7 compatibility issue.
Fixed a conflict with the latest WPML plugin.
A new default load logic point attached to the action ‘parse_query’. By default the widget logic is only evaluated once.
Translation added: Ukrainian by Roman Sulym
0.57
Small fixes to satisfy some define(‘WP_DEBUG’, true) errors
0.56
Small fix to the original WP3.5 fix in 0.54 that had the side effect of failing to save logic text on newly added widgets.
0.55
Restored a striplashes that vanished in 0.54 causing much grief.
Translation: Spanish by Eduardo Larequi https://wordpress.org/support/profile/elarequi
0.54
Removed a WP 3.1+ function call, hopefully making it 2.8 compatible again.
A little ‘trim’ of WL code to stop “syntax error, unexpected ‘)'” errors, which could occur if your WL was just a single space. Thanks to https://twitter.com/chrisjean for pointing this out.
Translation support! Thanks to Foe Services Labs https://wordpress.org/support/profile/cfoellmann for the work on this and the German Social Translation
Added a ‘widget_logic_eval_override’ filter. This allows advanced users to bypass EVAL with a function of their own.
0.53
Accidentally released code with a terrible bug in it ?
0.52
Two new features: optional delayed loading of logic (see Configuration under Installation), and the ability to save out and reload all your site’s widget logic into a config file
0.51
One important bug fix (fairly major and fairly stupid of me too)
0.50
For the first time since this started on WP 2.3, I’ve rewritten how the core widget logic function works, so there may be ‘bumps ahead’.
It now uses the ‘sidebars_widgets’ filter (as it should have done when that was
introduced in WP2.8 by the look of it). The upshot is that is_active_sidebar should behave properly.
Widget callbacks only get intercepted if the ‘widget_content’ filter is activated, and much more briefly. (A widget’s ‘callback’ is rewired within the ‘dynamic_sidebar’ function just before the widget is called, by the ‘dynamic_sidebar_param’ filter, and is restored when the callback function is invoked.)
0.48
Kill some poor coding practices that throws debug notices – thanks to John James Jacoby.
0.47
FINALLY tracked down the elusive ‘wp_reset_query’ option resetting bug.
0.46
Fix to work with new WP2.8 admin ajax. With bonus fixes.
0.44
Officially works with 2.7 now. Documentation changes and minor bug fixes.
0.43
simple bug fix (form data was being lost when ‘Cancel’ing widgets)
0.42
WP 2.5+ only now. WP’s widget admin has changed so much and I was getting tied up in knots trying to make it work with them both.
0.4
Brings WP 2.5 compatibility. I am trying to make it back compatible. If you have trouble using WL with WP 2.1–2.3 let me know the issue. Thanks to Kjetil Flekkoy for reporting and helping to diagnose errors in this version
0.31
Last WP 2.3 only version