How-to and Troubleshooting
3
Posts
2
Users
1
Reactions
2,125
Views
Aug 17, 2018 11:00 am
Is there any code snippet i can use to get users post count?
I want to offer a discount in my webshop for forum users that has more than ie. 10 posts/topics. Thats why i need to get the count / activity of the user in my php code.
Thanks
Rune
2 Replies
Aug 17, 2018 5:40 pm
Try this code, the $userid should be defined by you:
<?php $user_posts = wpforo_member( $userid, 'posts' ); ?>