If the plugin Customizer Remove All Parts is activated the “Menu” item in the Design menu disappears.
Deactivating ACF Widgets and the “Menu” item is back.
I thinks this has something to do with the acfw_edit_admin_menu
function in admin-setup.php.
I changed the code to
function acfw_edit_admin_menu(){
if ( !current_user_can(‘manage_options’) )
return;
global $submenu;
if ( empty( $submenu[‘themes.php’][7] ) ){
return; // return if the default menu structure has been modified
}
$widgets_postion[6] = $submenu[‘themes.php’][10]; // preserve key for widgets.php
$widgets_postion[7] = $submenu[‘themes.php’][7]; // preserve key for widgets.php
$widgets_postion[] = array_pop($submenu[‘themes.php’]);
// Splice and preserve keys
acfw_array_splice_assoc($submenu[‘themes.php’], 2, 1, $widgets_postion);
ksort($submenu[‘themes.php’]);
}
and I get the “Menu” item back if both plugins activated.
Don’t know if this is the best solution – but it works for me.
Thanks
Thomas
-
This topic was modified 1 year, 3 months ago by
Thomas Meyer.
-
This topic was modified 1 year, 3 months ago by
Thomas Meyer.
-
This topic was modified 1 year, 3 months ago by
Thomas Meyer.