Super slow admin panel

Set the install to default, all plugins inactive and the default theme. After this step will not reduce the load, analyze the install, like with the plugin “Debug Objects”, view the queries tab, there will give you information about slow DB Queries.

Adding HTML tags or css classes to admin columns

Here’s what I ending up using thanks to Milo, the Codex and this post from http://simple2kx.com/. add_action( ‘manage_issues_pm_posts_custom_column’, ‘my_manage_issues_pm_columns’, 10, 2 ); function my_manage_issues_pm_columns( $column, $post_id ) { global $post; switch( $column ) { /* If displaying the ‘issues_type’ column. */ case ‘issues_type’ : if ( $terms = get_terms( ‘issues_type’ ) ) { echo ‘<span>’; … Read more

Doubt using $wpbd->get_col for a single column

Try this. Hopefully I’ve interpreted your output correctly. I’d recommend a good read of the $wpdb codex, particularly in relation to the get_col() method – http://codex.wordpress.org/Class_Reference/wpdb#SELECT_a_Column global $wpdb; // You won’t need this unless this code is within a function $query = $wpdb->prepare( ‘SELECT %1$s.guid FROM %1$s’, $wpdb->posts ); $results = $wpdb->get_col($query); $counter = 1; … Read more

Remove Duplicator plugin from admin menu if not an administrator

After a bit more research, I have found a way to do this from this post https://wordpress.stackexchange.com/a/136064/54989 Rather than using unset as I had done previously, remove_menu_page works for Duplicator: remove_menu_page( ‘duplicator’ ); so my complete code now looks like: function jitb_remove_admin_menu_items() { if ( !current_user_can( ‘manage_options’ ) ) { $remove_menu_items = array( __( ‘Comments’ … Read more

Filter for Admin Nav Menus Drop Down

I believe the filter you want is wp_get_nav_menus: function wp_get_nav_menus( $args = array() ) { $defaults = array( ‘hide_empty’ => false, ‘orderby’ => ‘name’ ); $args = wp_parse_args( $args, $defaults ); /** * Filter the navigation menu objects being returned. * * @since 3.0.0 * * @see get_terms() * * @param array $menus An array … Read more