count_user_posts()
doesn’t support the second parameter ($post_type in your code), according to the docs.
There is a function at the bottom of the docs page that allows you do filter by post_type, you could drop in functions.php and use.
count_user_posts()
doesn’t support the second parameter ($post_type in your code), according to the docs.
There is a function at the bottom of the docs page that allows you do filter by post_type, you could drop in functions.php and use.