@prefix sioc: <http://rdfs.org/sioc/ns#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix content: <http://purl.org/rss/1.0/modules/content/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

<https://lhero.org/portfolio/lh-membership/>
  a sioc:Post ;
  dc:title "Team join requests" ;
  dcterms:identifier 154474 ;
  dc:modified "2026-11-13T14:25:11Z"^^xsd:dateTime ;
  dc:created "2026-11-13T14:25:11Z"^^xsd:dateTime ;
  sioc:link <https://lhero.org/portfolio/lh-membership/team-join-requests/> ;
  sioc:has_creator <https://lhero.org/author/1/#account> ;
  sioc:has_container <https://lhero.org/#posts> ;
  content:encoded "<ul class=\"lh_portfolio-meta\"><li><strong>Part of:</strong> <a href=\"https://lhero.org/portfolio/lh-membership/\">LH Membership</a></li></ul><p class=\"wp-block-paragraph\">A site can require approval before its members join a team. When it does, the team&#8217;s Join button reads <strong>Request to join</strong>, and pressing it records a request instead of joining. Once a request is open the button reads <strong>Request pending</strong>. Nothing changes on a site that does not ask for this.</p><h3 class=\"wp-block-heading\">Turning it on</h3><p class=\"wp-block-paragraph\">A site plugin returns true from <code>lh_membership_team_join_requires_review( $requires, $user_id, $group_id, $context )</code> for the joins it wants reviewed. The filter defaults to false, and people who can approve requests (<code>add_users</code> on the site) are never held. <code>$context</code> is <code>join</code> (the Join button).</p><h3 class=\"wp-block-heading\">Deciding</h3><ul class=\"wp-block-list\"><li>Approvers are users with <code>add_users</code> on the site, as for membership applications. They get one rolling BuddyPress notification per site (&#8220;Jane Smith asked to join Team&#8221;).</li><li><strong>Users &gt; Team Requests</strong> lists open requests with Approve and Decline. It appears when the site has a review rule or open requests.</li><li>Approving adds the member to the team. Declining closes the request; the member can ask again. Either way the member gets a BuddyPress notification.</li><li>If the member joins the team another way, for example their captain adds them, the open request is closed.</li><li>The <code>list-team-requests</code>, <code>approve-team-requests</code> and <code>decline-team-requests</code> abilities do the same over MCP, per site (<code>site_id</code>).</li></ul><h3 class=\"wp-block-heading\">Storage</h3><p class=\"wp-block-paragraph\">Requests are rows of the organisation invitation class (<code>LH_Membership_Organisation_Team_Invitation_Manager</code>) with type <code>request</code>: <code>item_id</code> the site, <code>secondary_item_id</code> the team, <code>inviter_id</code> the member. Open until decided, then marked accepted and kept as history. Deleting the account deletes them.</p><h3 class=\"wp-block-heading\">Hooks</h3><ul class=\"wp-block-list\"><li><code>lh_membership_team_join_requires_review</code> (filter): whether a join needs review.</li><li><code>lh_membership_team_request_notes</code> (filter): plain-text context shown to approvers for a request, such as the member&#8217;s other teams.</li><li><code>lh_membership_team_request_created</code>, <code>_approved</code>, <code>_declined</code> and <code>_closed</code> (actions).</li></ul><h3 class=\"wp-block-heading\">Not yet covered</h3><p class=\"wp-block-paragraph\">Accepting a captain&#8217;s group invite, and requesting membership of a private group, still join or go to the group admins as before.</p>"^^rdf:XMLLiteral ;
  sioc:content "Part of: LH MembershipA site can require approval before its members join a team. When it does, the team&#8217;s Join button reads Request to join, and pressing it records a request instead of joining. Once a request is open the button reads Request pending. Nothing changes on a site that does not ask for this.Turning it onA site plugin returns true from lh_membership_team_join_requires_review( $requires, $user_id, $group_id, $context ) for the joins it wants reviewed. The filter defaults to false, and people who can approve requests (add_users on the site) are never held. $context is join (the Join button).DecidingApprovers are users with add_users on the site, as for membership applications. They get one rolling BuddyPress notification per site (&#8220;Jane Smith asked to join Team&#8221;).Users &gt; Team Requests lists open requests with Approve and Decline. It appears when the site has a review rule or open requests.Approving adds the member to the team. Declining closes the request; the member can ask again. Either way the member gets a BuddyPress notification.If the member joins the team another way, for example their captain adds them, the open request is closed.The list-team-requests, approve-team-requests and decline-team-requests abilities do the same over MCP, per site (site_id).StorageRequests are rows of the organisation invitation class (LH_Membership_Organisation_Team_Invitation_Manager) with type request: item_id the site, secondary_item_id the team, inviter_id the member. Open until decided, then marked accepted and kept as history. Deleting the account deletes them.Hookslh_membership_team_join_requires_review (filter): whether a join needs review.lh_membership_team_request_notes (filter): plain-text context shown to approvers for a request, such as the member&#8217;s other teams.lh_membership_team_request_created, _approved, _declined and _closed (actions).Not yet coveredAccepting a captain&#8217;s group invite, and requesting membership of a private group, still join or go to the group admins as before." ;
  sioc:topic <https://lhero.org/?taxonomy=author&term=cap-1>, <https://lhero.org/?taxonomy=lh_object_key&term=lh-portfolio_doc_20261113t040000-team-join-requests> .

<https://lhero.org/author/1/#account> rdfs:seeAlso <https://lhero.org/author/1/?feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=author&term=cap-1> rdfs:seeAlso <https://lhero.org/?taxonomy=author&term=cap-1&feed=lhrdf&format=turtle> .
<https://lhero.org/?taxonomy=lh_object_key&term=lh-portfolio_doc_20261113t040000-team-join-requests> rdfs:seeAlso <https://lhero.org/?taxonomy=lh_object_key&term=lh-portfolio_doc_20261113t040000-team-join-requests&feed=lhrdf&format=turtle> .
