Menu wizard in child theme
-
hello,
I would like to have the plugin in my child theme is this possible? I can only get the menu in it but I can’t save the settings.
I have a page in my functions.php
function q_options_panel(){ add_menu_page('Q page title', 'Q admin', 'manage_options', 'theme-options.php', 'wps_theme_func'); add_submenu_page( 'theme-options.php', 'menu page title', 'menu', 'manage_options', 'theme-op-settings', 'wps_theme_func_settings'); } add_action('admin_menu', 'q_options_panel'); function wps_theme_func(){ echo '<div class="wrap"><div id="icon-options-general" class="icon32"><br></div> <h2>Dashboard</h2></div><br>'; include ('Q-admin/index.php'); } function wps_theme_func_settings(){ echo '<div class="wrap"><div id="icon-options-general" class="icon32"><br></div> <h2>Menus</h2></div>'; //echo '<pre>'; //var_dump($k); //echo '</pre>'; include('Q-admin/wp-clean-admin-menu.php'); }I want the plugin to be in wp-clean-admin-menu.php so I can remove admin menus from there with the on and off button on that page swell.
The topic ‘Menu wizard in child theme’ is closed to new replies.