• Resolved juaevpa

    (@juaevpa)


    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]

Viewing 15 replies - 1 through 15 (of 22 total)
  • nuclearape

    (@nuclearape)

    I’m having the same issue ??

    PthPndr

    (@pthpndr)

    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 ); 
    
    ronsrace

    (@ronsrace)

    same here

    Plugin Author Frank Bueltge

    (@bueltge)

    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_menu

    
        add_action( 'admin_menu', '_mw_adminimize_set_menu_option', 99999 );
    

    Thanks for this test and your feedback.

    PthPndr

    (@pthpndr)

    @frank

    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.

    Thread Starter juaevpa

    (@juaevpa)

    Hi,

    yes I tried to update the settings, the first thing that I did ?? .. but it doesn’t work.

    Plugin Author Frank Bueltge

    (@bueltge)

    @pthpndr Why you run this function about two hooks, not only the custom_menu_order hook?

    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.

    Plugin Author Frank Bueltge

    (@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!

    PthPndr

    (@pthpndr)

    @bueltge,

    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.

    azrtist

    (@azrtist)

    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.

    azrtist

    (@azrtist)

    Also, the Adminimize Settings page is not ignoring the Menu Options items and is not showing all of my admin options.

    Plugin Author Frank Bueltge

    (@bueltge)

    @azrtist Have you try the dev version form my last comment?

    azrtist

    (@azrtist)

    Ah, thank you Frank. The dev version solved it!

    Plugin Author Frank Bueltge

    (@bueltge)

    Thanks for trying and feedback.

    Plugin Author Frank Bueltge

    (@bueltge)

    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

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Problems after WP update’ is closed to new replies.