If user has X number of posts?
-
How do I check if user has X number of posts inside bbpress forum to allow him to see blog post.
For example, for logged in user, it would be like:function show_to_logged( $atts, $content = null ) { if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; }; add_shortcode('show_to_logged', 'show_to_logged');
function show_to_bbpress_user_with_x_posts( $atts, $content = null ) { if ( user_has_X_BBPRESS_topics_or_topic_replies() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; }; add_shortcode('show_to_bbpress_user_with_x_posts', 'show_to_bbpress_user_with_x_posts');
What would be correct function for
user_has_X_BBPRESS_topics_or_topic_replies
?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.