Approving and rejecting applications

Applications pending on a site are approved or rejected under Users > Pending Approval, with the Approve Member(s) and Reject Member(s) bulk actions, or over MCP with the approve-applications and reject-applications abilities (see Abilities). Both paths run the same code.

What each decision does

The abilities act only on applicants pending on the site at that moment. Anyone else (already a member, already decided, or not an applicant) is skipped and reported, so repeating a call is harmless. They need add_users on the site and take site_id, so one connector can work through any site’s queue. When called for another site, the welcome email uses that site’s own template and details.

Emails and the optional message

Hooks

The code is LH_Membership_onboarding_admin_class::make_user_member_in_backend() and decline_application_in_backend(), with the emails in includes/lh-membership-application-emails-class.php. (Since 2.99.0; before-email hook since 2.102.0.)