Bring page from sub menu to admin menu in option tree

Add this to your functions.php file –

add_filter('ot_theme_options_parent_slug', '__return_false');

Basically it’s a filter (ot_theme_options_parent_slug) added by the plugin author and the usage is simple like I provided here. You may consider looking at this page for all available filters for “Option-Tree” plugin – https://github.com/valendesigns/option-tree/blob/master/includes/ot-functions-admin.php By adding this filter, you can pass any function and adjust the UI according to you. Like add_filter('filter_name', 'your_function_name');

Then define the function and do what you like to do –
function(your_function_name){//do whatever you like to do}

Btw, (ot_theme_options_parent_slug) this returns default slug of themes.php So by returning is false, it will go to main menu system of wordpress. You may also adjust the position of it by adding additional filter available.

tech