Is there any specific reason to disallow the use of get_option_tree on the admin side?
I have a scenario where I'd like to use it: A custom user role has access to the admin area to modify custom data, but not access to any other WP admin section. The admins need to have editable help text for those users and this plugin would be a simple way for me to add it.
(I understand that normally this kind of user would edit the data on the front end, but the client did not order designs for those pages, so it's in the WP admin area.)
For now, I'm allowing it (with no visible side-effects) by adding this to my plugin's admin_init action hook:
if ( defined( "OT_PLUGIN_DIR" ) && file_exists( OT_PLUGIN_DIR . '/functions/get-option-tree.php' ) ) {
require_once( OT_PLUGIN_DIR . '/functions/get-option-tree.php' );
}
Of course, I'd rather not have to make this check. ;)