Title: is_tree() function quirk
Last modified: August 21, 2016

---

# is_tree() function quirk

 *  Resolved [rlinn](https://wordpress.org/support/users/rlinn/)
 * (@rlinn)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/is_tree-function-quirk/)
 * Good afternoon, my question is quite straight-forward.
 * I am using Widget Logic to control my widgets. As part of the conditions, I’m
   using an `is_tree()` function that is defined in functions.php of my main theme(
   using a child theme for Hybrid).
 * When WPTouch takes over and uses the Bauhaus theme, Widget Logic gets upset because
   it can no longer find `is_tree()`.
 * I’ve been resolving this manually by adding `is_tree()` to the WPTouch theme’s
   functions.php file every time that I upgrade. But this is getting _tedious_.
 * Is there a way that I can register the function `is_tree()` for use across my
   themes that doesn’t involve writing a plugin?
 * Thank you.
 * [http://wordpress.org/plugins/wptouch/](http://wordpress.org/plugins/wptouch/)

Viewing 1 replies (of 1 total)

 *  [BraveNewCode Inc.](https://wordpress.org/support/users/bravenewcode/)
 * (@bravenewcode)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/is_tree-function-quirk/#post-4457702)
 * Your best bet is definitely to write a small plugin to achieve that.

Viewing 1 replies (of 1 total)

The topic ‘is_tree() function quirk’ is closed to new replies.

 * ![](https://ps.w.org/wptouch/assets/icon-256x256.png?rev=1313960)
 * [WPtouch - Make your WordPress Website Mobile-Friendly](https://wordpress.org/plugins/wptouch/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wptouch/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wptouch/)
 * [Active Topics](https://wordpress.org/support/plugin/wptouch/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wptouch/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wptouch/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [BraveNewCode Inc.](https://wordpress.org/support/users/bravenewcode/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/is_tree-function-quirk/#post-4457702)
 * Status: resolved