OptionTree is a great options framework for WordPress sponsored by ThemeForest, the largest WordPress theme marketplace on the web. It was originally created to help ThemeForest authors quickly add options to their themes for the end user to manage. It has seen widespread usage by both commercial and non-commercial theme creators – and is nice to have. However, one of the downside is, unless you’re a developer – you probably didn’t know that using this option framework would add several extra database calls to your website on each page load, potentially slowing down your site.
To address this issue, Option Tree has the ability to pass a parameter into its functions that contains all of your theme options in a single array. However, to get this in each of your pages, you would still need to edit your files to add a call to the `get_option(‘option-tree’);` function at the top of each page template. With these helper functions, none of that is necessary. Just replace your `get_option_tree(‘option-name’);` calls with `get_theme_option(‘option-name’);`. With that, no matter how many times you call for a theme option, it is only ONE database request. Hope it helps.