Title: [Plugin: Widget Logic] Returns
Last modified: August 19, 2016

---

# [Plugin: Widget Logic] Returns

 *  [inventfilm](https://wordpress.org/support/users/inventfilm/)
 * (@inventfilm)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-returns/)
 * I have a page called:
 * Returns
 * To make your plugin function properly I had to modify the code.
 * `$wl_value=(stristr($wl_value, "return"))?$wl_value:"return (".$wl_value.");";`
   
   changed to:
 * `$wl_value=(stristr($wl_value, "return "))?$wl_value:"return (".$wl_value.");";`
 * Note the extra space after “return

Viewing 1 replies (of 1 total)

 *  [alanft](https://wordpress.org/support/users/alanft/)
 * (@alanft)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-returns/#post-1709206)
 * this is something i might add to the FAQ actually.
 * you can workround this without changing the plugin code, by changing your WL 
   to explictly include return and end with a ‘;’ so if your code is
 * is_page(‘returns’)
 * change it to
 * return is_page(‘returns’);
 * HTH

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Widget Logic] Returns’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/widget-logic_c8dde5.svg)
 * [Widget Logic](https://wordpress.org/plugins/widget-logic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-logic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-logic/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-logic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-logic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-logic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [alanft](https://wordpress.org/support/users/alanft/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-widget-logic-returns/#post-1709206)
 * Status: not resolved