Count not updating when users deleted
-
Hi,
I’m building some functionality that requires the use of counting the user taxonomy terms.
Am I right in saying that the term count is supposed to update when a user is deleted?
That doesn’t seem to happen at the moment.To recreate:
Blank installation of WP 5.2.2 and TwentyNinenteen theme.
If I do a quick an dirty edit of its functions php and add the example ‘Professions’ taxonomy registration code into the ‘init’ hook then it will set it up and I can create two terms ‘Prof A’ and ‘Prof B’
Create a new user (subscriber) and assign them to Prof A
Go to Users>Professions and the count for Prof A is 1. – so far so good.
Delete this new user
The Count for Prof A still shows as ‘1’.Thanks,
Ben
- The topic ‘Count not updating when users deleted’ is closed to new replies.