Hi, one of very, very rare complaints I have of Cornerstone/Pro is its effects on admin side menu speed. It makes it almost impossible to use on larger menus, with almost 1-2 minute wait times for the menu to load and then any change to the menu takes another 1 minute or more to render. Unusable really on larger menus.
In the past you have given me a bit of php code to address this issue. Ideally it would be nice to have the menu functions that are slowing everything down “OFF by Default” and then have the ability to “turn on” whatever function are provided if an admin needs them. I dont use them… so I dont know what they are.
In any case… the code is now giving me an error. I am using WP code to add php to the admin side only. This is the code you sent a ways back… maybe it needs to be updated?
// Faster Menu
add_action(‘init’, ‘remove_these’, 10 );
function remove_these() {
remove_all_actions( ‘wp_nav_menu_item_custom_fields’, 10);
remove_all_actions( ‘wp_update_nav_menu_item’, 10 );
remove_all_filters( ‘manage_nav-menus_columns’, 10 );
remove_all_filters( ‘wp_nav_menu_items’, 10 );
add_filter(“cs_use_custom_fields_map”, “__return_false”);
}
this is the error I am getting when trying to activate this code:
please help. Thanks!