wordpress - Redux Framework Add Submenu -
wordpress - Redux Framework Add Submenu -
i cant redux options framework working plugin. trying add together settings submenu plugin.
i created simplified demo plugin , approve behaviour.
<?php /** * plugin name: redux sample plugin * plugin uri: http://uri_of_page_describing_plugin_and_updates * description: brief description of plugin. * version: plugin's version number, e.g.: 1.0 * author: name of plugin author * author uri: http://uri_of_the_plugin_author * license: "slug" license name e.g. gpl2 */ require_once(plugin_dir_path(__file__) . 'inc/admin/admin-init.php'); function redux_sample_plugin_log() { } function createsettingsmenue() { $pluginslug = 'redux_sample_plugin'; //create new top-level menu add_menu_page('redux sample plugin'), 'redux sample plugin', 'administrator', $pluginslug . '_log', 'logmenu' ); /*add_submenu_page( $pluginslug . '_log', null, 'im silly dummy entry', 'administrator', 'dummy', '__return_null' );*/ } add_action( 'admin_menu', 'createsettingsmenue', 9 );
i changed config this:
... 'page_slug' => 'my_plugin_settings', 'page_title' => 'settings' 'menu_type' => 'submenu', 'page_parent' => 'redux_sample_plugin_log', ...
the menu not shown code above (case 1 illustration). if comment in submenu function phone call redux options shown properely (case 2 illustration). spent lot of time can't working. sure must bug opened case @ github issue tracker (#1745) , provided additional details. said i'm doing wrong. can help me out?
//edit added screenshot both cases
//edit behaviour fixed in redux 3.3.9.35. no need adding page workaround more.
so redux creates it's own menu. trying create sub-menu of menu then?
page parent php file...
wordpress redux-framework
Comments
Post a Comment