Very Slow Admin Side Menu

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!

Hey Riceman,

Thanks for reaching out!

That code was duplicated in your child theme functions.php. If you wish to add it using WP code plugin, you need to remove that code from your child theme functions.php

Hope that helps.

ah, yes … thanks, and my apologies. This is an older site. I was adding the code in the functions.php file back then, before I started using WPcode. That was the older outdated code, so I was seeing the “slow admin menu”, and didnt think I had added it. Ill remove it and update with the newer code.

A

Hi Riceman,

Thanks, please let us know if you need further help with this.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.