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’ );

Custom items for Menus

Not in the menu management interface. You can inject custom elements if you create a custom nav walker. This requires some coding skill as well as trial and error to figure out which parts of the code you need to use, and how to tweak them. Or, if you’re comfortable using JavaScript to change things … Read more

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

Copied site has wrong menu URL behaviour

You need to use a Search and Replace plugin (I like “Better Search and Replace”) to replace in the database all instances of the olddomain name with the new one. This will fix media links, and anything else that has the olddomain name. You could do it manually with some SQL queries, and going into … Read more