Problems after WP update
-
Hi there!
I love your plugin, I use it because it’s really helpful, great job!
But after update WP I have some problems with it: some options of the admin menu were hidden for users and now they can see them. I have reviewed the plugin setup and these options are hidden for regular users.. but it doesn’t work because they can access to them (and see them in the admin menu).Thanks!
The page I need help with: [log in to see the link]
-
I’m having the same issue π
Same here, we also reorder some menu items and this does not work either.
It appears with Adminimize enabled I am not getting any output with this filter:
add_filter( 'menu_order', 'filter_menu_order', 10, 1 );same here
Thanks for your feedback. Have you tried to update the settings, so that Adminimize reload the menu from the installation?
@pthpndr How you reorder the menu item, a custom function about the filter
menu_order? Can you share this source for testing?@all Maybe you can try a test for me. Change the hook name in this line https://github.com/bueltge/Adminimize/blob/master/adminimize.php#L427
// Change menu via settings of Adminimize. add_action( 'custom_menu_order', '_mw_adminimize_set_menu_option', 99999 );to
admin_menuadd_action( 'admin_menu', '_mw_adminimize_set_menu_option', 99999 );Thanks for this test and your feedback.
-
This reply was modified 8 years, 3 months ago by
Frank Bueltge.
-
This reply was modified 8 years, 3 months ago by
Frank Bueltge.
-
This reply was modified 8 years, 3 months ago by
Frank Bueltge.
-
This reply was modified 8 years, 3 months ago by
Steven Stern (sterndata).
This is the function we use to reorder the menu:
add_filter( 'custom_menu_order', 'reorder_admin_menu' ); add_filter( 'menu_order', 'reorder_admin_menu' ); function reorder_admin_menu( $__return_true ) { return array( 'index.php', // Dashboard 'separator2', // --Space-- 'woocommerce', // WooCommerce 'edit.php?post_type=product', // Products 'separator1', // --Space-- 'edit.php?post_type=tribe_events', // Events 'edit.php?post_type=wc_booking', // Bookings 'upload.php', // Media 'edit.php?post_type=page', // Pages 'edit.php', // Posts ); }However, for a quick test all I did was try to output the menu:
add_filter( 'menu_order', 'filter_menu_order', 10, 1 ); function filter_menu_order( $menu_order ) { echo var_dump($menu_order); }With Adminimize enabled it did not echo the menu_order. When I disabled Adminimize it worked as expected.
Hi,
yes I tried to update the settings, the first thing that I did π .. but it doesn’t work.
@pthpndr Why you run this function about two hooks, not only the
custom_menu_orderhook?Can you try to change in the adminimize.php, in the plugin folder to change the hook in https://github.com/bueltge/Adminimize/blob/master/adminimize.php#L427 to
admin_menu?However you can output the menu topics, if you use the options of Adminimize to debug. After this option Adminimize push all data about the menu inside the console of the browser.
-
This reply was modified 8 years, 3 months ago by
Frank Bueltge.
I have change small thinks, can you try this release from the development repository https://github.com/bueltge/Adminimize
Overwrite your current plugin and test it – thanks!The dev release appears to be working for me.
Whatever you did fixed both menu issues and a custom WooCommerce placeholder image problem that appeared at the same time.
Thanks for your help.
I’m also having the same problem and keep getting different results, when I hide the Plugins option on the admin, other items I want hidden become visible and do not show up in the Adminimize Settings > Menu Options section. And then sometimes the Plugins option isn’t visible in the Adminimize settings. It goes back and forth. Very frustrating.
Also, the Adminimize Settings page is not ignoring the Menu Options items and is not showing all of my admin options.
@azrtist Have you try the dev version form my last comment?
Ah, thank you Frank. The dev version solved it!
Thanks for trying and feedback.
As hint, now a small page for users there use a custom menu order and Adminimize.
https://github.com/bueltge/Adminimize/wiki/Custom-Menu-Order -
This reply was modified 8 years, 3 months ago by
The topic ‘Problems after WP update’ is closed to new replies.