Allow members to create groups on my site

You can use BuddyPress to create groups, manage groups, allow users to join groups and search them. BuddyPress is like a Social Network plugin for WordPress. Has it’s own sub-section/ecosystem of plugins and add-ons and code snippets that you can apply. https://en-ca.wordpress.org/plugins/buddypress/ There’s an active developer community and lots of documentation too: https://codex.buddypress.org

Limit Post Creation Count by Author or Role

I have a site that offers non-paying members up to 5 posts using this: function author_post_count($user_id, $post_type = array(‘YOUR_CUSTOM_POST_TYPE_NAME_HERE’)) { $args = array( ‘post_type’ => $post_type, ‘author’ => $user_id, ‘posts_per_page’ => -1 ); $query = new WP_Query($args); return $query->found_posts; } Then I use: if ( author_post_count(get_current_user_id()) >5) { SHOW RESTRICTION NOTICE CODE HERE FOR USERS … Read more