Skip to content

14. Public pages

Three shortcodes put the plugin on the public site. Each goes on an ordinary WordPress page.

[cpm_signup_form]

The "join the club" form. Asks for the child's name and date of birth, the parent's name, email and mobile, which teams they're interested in, where they are, and anything else. A submission lands on the Waiting list and notifies the right secretaries.

[cpm_registration_form]

The season confirmation form parents reach from their emailed link. It lists that parent's children for the season and takes a yes or no for each.

Parents use it signed in. Two ways in:

  • the link in a registration, confirmation or payment email, or from the form below. For 7 days it signs the parent in on that device (for 30 days) and opens straight onto their children, as often as they follow it. The page shows who is signed in, with Your account and Sign out. A parent who saves a passkey on the account page can come back without any email;
  • a link for one member, from Open form to submit for this member on the season page, for when you need to send a one-off or answer for the parent yourself. It lasts a day, and after the answer is in it still opens on that member, with the payment to set up.

An emailed link more than 7 days old signs nobody in. It shows the club's standard This link has expired page instead, with an Email me a new link form that sends a fresh link straight back to the same page. Someone who lands on the page signed out gets the request form below.

Add season_id="12" to pin the page to one season; otherwise it uses the active season.

[cpm_registration_request]

The self-service "send me my link" form, for a parent who has lost their email. Two ways in:

  • by email address — if the address matches a parent on file, their link is emailed to them.
  • by the child's FA Number and date of birth — on a match, the parent goes straight to the registration form with no email round-trip.

Both answer the same way whether or not the details match anything, so neither can be used to find out who is registered with the club. Repeated failed attempts from one address are throttled, and repeat requests for the same email address are rate-limited so nobody can be email-bombed.