Ottawa West Four Rivers Ontario Health Team

Credentials Request

Communications team guide for the partner access request modal form

📦 Plugin: owfr-credentials-request 🏷 Version: 2.0.0 🖥 Type: Public + Admin
← Back to Documentation Index

Table of Contents

  1. What This Plugin Does
  2. How It Works
  3. Shortcode Reference
  4. Form Fields
  5. Viewing Requests in WP Admin
  6. Where to Place the Button
  7. Troubleshooting
1

What This Plugin Does

The Credentials Request plugin adds a green button to any page. When clicked, it opens a branded modal popup with a short contact form. Visitors use this form to request login credentials for password-protected areas of the OWFR website.

There are two versions of the form:

When a visitor submits the form, the request is saved directly to the WordPress database. No email configuration is required. Staff review all incoming requests from the Access Requests menu in the WP Admin sidebar, then manually create credentials and follow up with the requester.

This plugin does not automatically create WordPress user accounts. It captures and stores the request for staff to review and action manually.
2

How It Works

Visitor experience

  1. 1
    Visitor sees the buttonA green pill-shaped button (e.g. "Request Access") appears on the page wherever the shortcode is placed.
  2. 2
    Visitor clicks the buttonA modal popup slides over the page with the request form.
  3. 3
    Visitor fills in the formFirst name, last name, organization, role/title, and email are required. Phone and additional notes are optional.
  4. 4
    Visitor submitsThe request is saved to the database. The modal shows a green checkmark and "Request Sent!" message.

Staff experience

  1. 1
    Log into WP AdminGo to Access Requests in the left sidebar. New requests are highlighted with a badge count.
  2. 2
    Review the requestThe table shows the date, type (PCR or LEP), name, organization, role, email, phone, and any notes. Use the filter tabs to view only New or only LEP/PCR requests.
  3. 3
    Create credentials manuallyGo to WordPress → Users → Add New, create the account, and email the login details to the requester using the email address shown in the table.
  4. 4
    Mark as reviewedClick Mark Reviewed on the request row to update its status. Optionally delete entries you no longer need.
3

Shortcode Reference

Add the shortcode to any Divi Code Module, page, or text widget.

ShortcodeUse Case
[owfr_request_credentials] Default PCR button - "Request Primary Care Resources Access"
[owfr_request_credentials type="lep"] LEP button - "Request Lived Experience Partner Access"
[owfr_request_credentials label="Request Access"] Custom button label text
[owfr_request_credentials type="lep" label="Apply for LEP Access"] LEP form with custom label
You can place both shortcodes on the same page - for example, one PCR button and one LEP button. Each gets a unique ID automatically to avoid conflicts.

All shortcode attributes

AttributeValuesDefaultDescription
typepcr or leppcrWhich form variant to show. Changes the title, subtitle, role label, and email subject.
labelAny textSee belowText shown on the trigger button.
titleAny textSee belowHeading inside the modal.
subtitleAny textSee belowParagraph text below the modal heading.
role_labelAny textSee belowLabel for the role/title field.
role_placeholderAny textSee belowPlaceholder text inside the role field.

Default text for type="pcr"

Default text for type="lep"

4

Form Fields

First Name Required
Requester's given name.
Last Name Required
Requester's family name.
Organization Required
The clinic, organization, or group the requester belongs to.
Role / Title Required
Job title or role. Label and placeholder text differ between PCR and LEP variants.
Email Required
Used as the Reply-To address on the notification email sent to staff.
Phone Optional
Phone number for follow-up if needed.
Additional Notes Optional
Free-text field for any extra context the requester wants to include.
5

Viewing Requests in WP Admin

All submissions are stored in the WordPress database and viewable at WP Admin → Access Requests. No email or external service is needed.

The requests table

Each row shows:

Filter tabs

Use the tabs above the table to filter the view:

TabShows
AllEvery request regardless of type or status
NewOnly requests not yet marked as reviewed
ReviewedOnly requests that have been marked as reviewed
PCR onlyPrimary Care Resources requests only
LEP onlyLived Experience Partner requests only

Row actions

ActionWhat it does
Mark ReviewedChanges the status from New to Reviewed. Appears only on New rows. Use this after you have created the credentials and followed up with the requester.
DeletePermanently removes the row from the database. A confirmation prompt appears before deletion.
A badge counter next to Access Requests in the sidebar shows how many unreviewed (New) requests are waiting. It disappears once all requests are marked as reviewed.
Only users with the Editor role or higher can view and manage the Access Requests page.
6

Where to Place the Button

The shortcode can go anywhere on the website. Recommended placements:

Adding to a Divi Code Module

  1. In the Divi Builder, add or edit a Code Module.
  2. Paste the shortcode: [owfr_request_credentials]
  3. Save the module and publish/update the page.
Do not paste the shortcode inside a Text Module - use a Code Module only. Text Modules can add extra HTML tags that break the button layout.
7

Troubleshooting

ProblemLikely CauseFix
Button appears but modal doesn't open JavaScript conflict with another plugin or Divi module Check the browser console for JS errors. Ensure the shortcode is in a Code Module, not a Text Module.
Modal opens but appears behind other content Divi stacking context issue (unlikely - the modal is appended to <body>) Contact the development team. The plugin already uses a body-append fix for Divi z-index conflicts.
Form submits but request doesn't appear in Access Requests Database table not yet created Deactivate and re-activate the plugin in WP Admin → Plugins. The table is created automatically on re-activation.
"Access Requests" menu not visible in WP Admin Logged in as a user role below Editor Only Editor-level users and above can see the Access Requests menu. Log in as an Editor or Administrator.
"Security check failed" error on submit Page was open for a very long time before submitting (nonce expired) Ask the user to refresh the page and try again.
Divi editor fails to save after activating Corrupt plugin file (UTF-8 BOM) Re-upload the plugin file. Ensure the PHP file is saved as UTF-8 without BOM.