Highlight active Admin Menu when added though add_menu_page

add_filter( ‘parent_file’, ‘parent_file_hover’ ); function parent_file_hover( $parent_file ) { global $pagenow; if ( $pagenow == ‘post.php’) $parent_file = “post.php?post={$_REQUEST[‘post’]}&action=edit”; elseif($pagenow == ‘post-new.php’) $parent_file = “post-new.php?post_type={$_REQUEST[‘post_type’]}”; return $parent_file; }

Removing wp admin menu item on top bar of admin backend

Use this example function my_admin_bar_render() { $user = wp_get_current_user(); if ( in_array( ‘editor’, (array) $user->roles ) ) { global $wp_admin_bar; $wp_admin_bar->remove_menu(‘new-content’); } } add_action( ‘wp_before_admin_bar_render’, ‘my_admin_bar_render’ );

Add category label for appearance > menus items

There are not good/easy hooks to achieve this, but I think this is possible, just needs some work. I can give you general direction and some ideas. You can use hooks on nav_menu_items_page and nav_menu_items_page_recent to return array of posts with changed title. They both may use the same function, like this function my_nav_menu_items($posts, $args) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)