Support

Account

Home Forums Add-ons Options Page Change Menu Position of Options Page Reply To: Change Menu Position of Options Page

  • Hi guys.

    I think the above code should work, perhaps you need to test that the options pages have been added at the time which this filter runs like so:

    
    <?php 
    
    echo '<pre>';
    	print_r( $menu_ord );
    echo '</pre>';
    die; ?>
    

    You may find that the options pages are not in this array. If not, then the filter is running to early. Set the $priority of the filter to a later one like so:

    
    add_filter('menu_order', 'custom_menu_order', 99);  
    

    Thanks
    E