Add number new posts (post_status = pending) to administration menu [duplicate]
Normally everything is contained in $labels[‘menu_name’] argument on cpt registration is printed in the menu, so the right place where put the count span is there, but there are 2 problems: You have to dinamically count posts, so you can’t just write there the html Even if you insert the html in the $labels[‘menu_name’] option … Read more