Linux 软件免费装
Banner图

Bang! Invites - Invite People to Register by Email

开发者 bangplugins
更新时间 2026年8月14日 19:53
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

registration users membership invite email invitation

下载

1.0.38 1.0.39

详情介绍:

Bang! Invites lets you invite people to register on your site by email. Each person gets a private link that expires, lets them set a password, and gives them the role you pick. You can track every invitation - pending, accepted or expired - and resend, regenerate or copy any link. Features: The registration page Create a page, add the shortcode [banginvites_form] to it, then choose that page under Bang! Invites > Settings. Invite links point there. Documentation lives at bangplugins.com/docs/invites.

安装:

  1. Upload the plugin through Plugins > Add New > Upload, or copy the bang-invites folder to /wp-content/plugins/.
  2. Activate it.
  3. Create a page containing the shortcode [banginvites_form].
  4. Under Bang! Invites > Settings, choose that page, the default role, and where people go after registering.
  5. Send your first invitation from the Invite tab.

屏幕截图:

  • The invitation email, edited in place with click-to-insert tokens for the registration button, the plain link and the expiry date.
  • The registration page an invited person lands on, with their email already filled in and the button styled to match the site.
  • Settings, with an "On this page" index that follows you as you scroll.

常见问题:

A used invitation link still shows the registration form

That is a page cache serving an old copy of the registration page. The plugin sends no-cache headers, sets the DONOTCACHEPAGE constant, and sets a cookie on invite-link requests, which prevents caching on virtually all hosts and caching plugins. If your host's cache still stores the page, add your registration page (e.g. /portal-setup/) to the host's cache exclusion list (on 20i: StackCache > Cache Exclusions) and purge the cache once.

Do invited people need an existing account?

No. The invite link lets them create one. If they already have an account, they are told to log in instead.

How long is a link valid?

14 days by default, configurable from 1 to 365 days under Settings.

Can a link be reused?

No. A link is single-use and is consumed when the account is created.

Can an invited person choose their own role?

No. The role is chosen by an administrator when the invitation is sent, stored on the server, and never read from the visitor's request. For security, invitations can only assign low-privilege roles: no role that can edit or publish content, or manage the site, is ever offered or applied. The check is capability-based rather than a fixed list, so custom roles work too - any low-privilege role on your site, whether registered by a membership or LMS plugin or created by you, appears in the role selector automatically. To give someone a higher role such as Editor, invite them and then promote their account under Users once they have registered. The role is checked again at the moment the account is created.

Can I use my own registration form, or another registration plugin?

Yes. Under Settings, switch "Registration form" to "I'm using another registration plugin", then put that plugin's form on your registration page instead of the [banginvites_form] shortcode. Invite links, expiry, single-use enforcement and tracking all carry on working exactly as before. An invitation is marked accepted when a new account is created using the email address it was sent to, so the person does need to register with the address you invited.

Can I invite several people at once?

Yes. Paste in as many addresses as you like, separated by commas, semicolons, spaces or new lines. Everyone in one batch gets the same role. Afterwards you get a breakdown showing what was sent, what was skipped because an account already exists, and anything that could not be emailed.

What happens when an invitation expires?

The link stops working and the person is told to ask for a new one. On the Tracking tab you can either "Resend", which emails a fresh link, or "New link", which mints one for you to copy and pass on yourself. Both replace the old link, so the previous one stops working straight away.

The invitation email did not arrive. What now?

Invitations go out through the standard WordPress mail function, so if your site struggles to send email at all, invitations are affected like everything else. An SMTP plugin is the usual fix. In the meantime, every pending invitation on the Tracking tab has a "Copy link" button, so you can send the link yourself by any means you like.

Can I change what the emails say?

Yes. The invitation email and the welcome email each have their own tab with a full editor and an editable subject, plus click-to-insert tokens for the registration button, the plain link, the expiry date, the person's name and more. You can also set the From name, From address and Reply-To.

What username do invited people get?

One is made for them from the first and last name they enter, for example john.smith, with a number added if that name is already taken. If no name is available it falls back to the part of their email address before the @. They can sign in with either the username or their email address.

Does it work with membership, LMS or client-area plugins?

Yes. The role list is worked out from what each role can actually do rather than from a fixed list of names, so any low-privilege role on your site appears in the role selector automatically, whether you created it yourself or another plugin registered it.

How secure is an invitation link?

Each link carries a 20-character code from WordPress's own secure generator. It only works when the code, the email address and the expiry all check out, and it is single use, consumed the moment the account is created. The role is read from the record on the server and never from the link, and it is checked again at the moment the account is created.

Can I stop people reaching the registration page without an invitation?

Yes, and it is on by default. Anyone opening that page without a valid invitation sees a notice you can word yourself, rather than the form. Anyone who can create users is exempt, so you can still edit and preview the page while logged in.

What happens if I delete the plugin?

Deleting it from the Plugins screen removes its settings and its invitation records. Deactivating does not, so you can safely deactivate and reactivate. Accounts people have already created are left alone either way, they are ordinary WordPress users from the moment they register.

更新日志:

1.0.39 1.0.38 1.0.35 1.0.34 1.0.33 1.0.32 1.0.31 1.0.30 1.0.29 1.0.28