How do I add the “orange counter” next to a Custom Post Type?
I believe that the only sensible place to rename a menu item is the add_menu_classes filter hook. It has a different destiny, but I can’t see any other place. Hook passes an array of first-level menu items as a parameter to the function. The array elements look like this: $menu = [ 5 => Array … Read more