Certificate Search Documentation

Documentation โ€” Tutor Certificate Search
Tutor Certificate Search โ€” Documentation
Plugin Documentation

Tutor
Certificate Search

Certificate verification and lookup for Tutor LMS โ€” an admin search tool, a public-facing verification shortcode, and per-user certificate listings on WordPress admin profiles.

๐Ÿ“ฆ Version 2.1.3 ๐Ÿ”Œ Requires: Tutor LMS ๐Ÿ”’ No extra database tables

Ready to get started?

One-time payment of $49 ยท Lifetime updates ยท Secure checkout via WooCommerce

Purchase the Plugin โ€” $49 โ†’
Section 1

Overview

Tutor Certificate Search adds certificate verification and lookup capabilities to Tutor LMS. It provides three integrated tools covering every scenario โ€” from a quick admin lookup to a public verification form that anyone can use to confirm a certificate is genuine.

The plugin reads directly from Tutor LMS’s existing data โ€” no additional database tables are created. All certificate lookups query the WordPress comments table, where Tutor LMS stores course completion records, using the 16-character verification ID as the search key.

๐Ÿ”

Admin Certificate Search

Look up any certificate by its verification ID and instantly see the student’s name, email, course, completion date, and instructor.

Admins only
๐ŸŒ

Frontend Verification Shortcode

Embed a verification form on any page. Visitors enter a verification ID to confirm authenticity and open the certificate โ€” no login required.

Public ยท Any visitor
๐Ÿ‘ค

User Profile Certificates

Automatically adds a certificates section to every WordPress admin user profile listing all earned certificates with their IDs and View buttons.

Admin profile pages
โœ…

Privacy by design. The public verification shortcode returns only a success or failure โ€” it never exposes any personal student data to visitors. Opening the actual certificate is handled by Tutor LMS’s own certificate page.

Section 2

Requirements

RequirementDetails
WordPress5.0 or higher
PHP7.4 or higher
Tutor LMSAny current version (Free or Pro) โ€” course completion with certificate generation must be in use
User roleAdministrator access required for the admin search page and user profile features
โš ๏ธ

If Tutor LMS is not installed and activated when the plugin is activated, WordPress will deactivate the plugin immediately and show an error message. The plugin requires Tutor LMS to be active to function.

Section 3

Installation

Upload and activate

  1. Log in to your WordPress admin dashboard
  2. Navigate to Plugins โ†’ Add New โ†’ Upload Plugin
  3. Select the plugin ZIP file, click Install Now, then Activate Plugin

Activate your license

After activation, navigate to the License Management page. Its location depends on whether the Ksajie hub is installed:

  • If the Ksajie hub is present: Ksajie โ†’ TCS License
  • If no Ksajie hub is present: Settings โ†’ TCS License

Enter your license key and click Activate License. None of the plugin’s features will be available until a valid license is active.

Verify installation

After activating the license, navigate to the Certificate Search admin page and perform a test search using a known verification ID from a completed course. If results appear correctly, the plugin is working. Also place the [tutor_certificate_verify] shortcode on a test page and verify the form renders and responds correctly.

Section 5

Frontend Verification Shortcode

Place this shortcode on any page to give visitors โ€” including guests who are not logged in โ€” a simple form to confirm a certificate’s authenticity.

[tutor_certificate_verify]
Renders a styled card with a monospace input field and a Verify Certificate button. Works on any page, post, or Elementor widget. No login required.

Shortcode attributes

AttributeDefaultDescription
button_textVerify CertificateLabel for the submit button
placeholderEnter certificate verification IDPlaceholder text inside the input field
labelEnter certificate verification IDLabel displayed above the input field

Example with custom attributes: [tutor_certificate_verify button_text="Check Certificate" label="Certificate ID"]

How verification works

  1. Visitor enters the 16-character verification ID and clicks the button (or presses Enter)
  2. Client-side validation confirms the ID is exactly 16 characters before sending the request
  3. An AJAX request is sent to the server โ€” works for both logged-in and non-logged-in visitors
  4. The server searches the database using the same logic as the admin search tool
  5. If found: a green confirmation message appears and the certificate opens in a new tab at the Tutor LMS certificate URL
  6. If not found: a red error message is shown; no certificate is opened
โ„น๏ธ

The verification endpoint returns only a success or failure โ€” no personal student data is sent to the browser. The certificate itself is opened via Tutor LMS’s own certificate page, which may display the student’s name as part of the certificate image.

Section 6

User Profile Certificates

A Tutor LMS Certificates section is automatically added to the bottom of any WordPress admin user profile page โ€” both when a user views their own profile (Users โ†’ Your Profile) and when an admin edits another user’s profile (Users โ†’ All Users โ†’ Edit).

What is displayed

The section only appears if the user has at least one Tutor LMS certificate โ€” no empty heading is shown for users without certificates. When certificates are present, a two-column grid is shown:

  • Left column: each certificate shown as a card with the 16-character verification ID in a monospace code element, the course name, and the completion date
  • Right column: a View Certificate button for each certificate that opens it in a new tab, alongside the course name and completion date

A summary line below the grid shows the total count โ€” for example, “3 certificates earned.” The layout collapses to a single column on screens narrower than 768px.

Access control

The certificates section requires either edit_users or manage_options capability to view. The View Certificate button AJAX handler applies the same capability check server-side before resolving the certificate URL and returning it to the browser.

Section 7

Frequently Asked Questions

Yes. The plugin queries the wp_comments table for all records matching the search criteria โ€” there is no dependency on when the plugin was installed. All historical completion records with valid 16-character verification IDs will be found and displayed.
No. The frontend verification endpoint returns only a success or failure boolean. On success, the browser opens the Tutor LMS certificate page using the verification ID โ€” what is shown on that page depends entirely on how Tutor LMS renders certificates, not on this plugin. No names, emails, or other personal data are returned by the AJAX endpoint.
Check these in order: (1) Confirm the verification ID is exactly 16 characters โ€” the search strictly requires this length. (2) Confirm the course completion record exists in the wp_comments table with comment_type = 'course_completed' and the verification ID stored in comment_content. (3) Check the license is active โ€” the AJAX handler blocks all requests when no valid license is present. (4) Some older Tutor LMS versions or custom configurations may store completion data differently โ€” inspect the comments table directly using phpMyAdmin.
The plugin reads the tutor_certificate_page option from Tutor LMS settings to build the certificate URL. If this option is not set, the URL falls back to {home_url}/tutor-certificate. Verify that the certificate page is published and correctly configured in Tutor LMS settings. If the page exists but the URL is wrong, update the certificate page setting in Tutor LMS.
Yes. The plugin includes multisite-aware Tutor LMS detection and the license validation uses HTTP_HOST domain detection which works correctly on multisite installations. The license is tied to the domain, so each site in a multisite network would need its own license key.
The certificate section only renders if the database query returns at least one result. Check that: (1) the user has completed at least one Tutor LMS course and Tutor LMS has generated a certificate for that completion, (2) the completion records in wp_comments have comment_type = 'course_completed', a non-empty comment_content, and the content is exactly 16 characters long.
Section 8

Troubleshooting

! Admin search returns no results for a valid verification ID
  • Verify the ID is exactly 16 characters โ€” copy-paste it to rule out invisible characters or spaces
  • Confirm the license is active on the License Management page โ€” the AJAX handler is completely blocked without a valid license
  • Inspect wp_comments directly in phpMyAdmin โ€” look for a row with comment_type = 'course_completed' and the verification ID in comment_content
  • Check the browser Network tab for the AJAX response โ€” any PHP error will appear there as a non-JSON response
! Frontend shortcode form appears but clicking Verify does nothing

This is almost always a caching issue:

  • Check the browser console for a “Certificate verify frontend scripts not loaded” error โ€” this means the page is being served from cache without the required JavaScript localization data
  • Configure your caching plugin to bypass or purge the cache on the shortcode page, or add the page to the cache exclusion list
  • Confirm the page’s content actually contains [tutor_certificate_verify] โ€” the plugin only enqueues its scripts on pages where the shortcode is detected
! Certificate section missing from a user’s admin profile
  • The section is hidden entirely when a user has no certificates โ€” confirm the user has at least one completed course with a generated certificate in Tutor LMS
  • Inspect wp_comments directly for this user’s completion records to confirm they have comment_type = 'course_completed' and a 16-character comment_content
  • Confirm the logged-in admin has edit_users or manage_options capability โ€” the section requires these to display
! View Certificate button opens a 404 or blank page

The certificate URL is built using Tutor LMS’s stored certificate page setting. If no page is set, the plugin falls back to {home_url}/tutor-certificate. To fix:

  • In Tutor LMS settings, confirm the certificate page is published and correctly assigned
  • If you recently changed the permalink structure, flush WordPress rewrite rules by visiting Settings โ†’ Permalinks and clicking Save
Section 9

Support

๐Ÿ’ฌ

Need help? Visit the support portal

If you’re experiencing an issue not covered in this documentation or the troubleshooting section, submit a support request through the portal. Please include the details below to help resolve your issue as quickly as possible.

Open Support Portal โ†’
Your WordPress and PHP versions
Your Tutor LMS version
Which feature is affected (admin search, shortcode, or user profile)
A description of the expected behaviour and what actually happens
Any JavaScript console errors from your browser’s developer tools