Employee Verification & Document Authentication

By Saqib K.

★ 5.0/5 (1 ratings)10+ active installationsVersion 1.5.1

Issue experience, internship and other HR letters with QR codes, and let anyone check on your website if a letter or employee is genuine.

Description

Employee Verification & Document Authentication lets you keep a list of your employees in WordPress, issue letters to them (experience, internship completion, salary certificate and so on), and give each letter a verification ID and QR code. Anyone who receives one of those letters can open your verification page, enter the ID or scan the QR code, and see whether the letter is genuine and still valid. Visitors don’t need an account.

Letters are not saved as static files. They are built from the database each time someone opens them, using your current logo, colours, templates and signature settings. If you change your branding, letters you issued earlier pick up the change too.

The plugin is aimed at HR teams, staffing agencies and small businesses that get verification requests from banks, embassies or new employers and want a faster way to answer them.

Employee management

  • Add, edit and delete employees, with an optional profile photo from the Media Library.
  • Set each employee’s status to Active, Intern or Former Employee.
  • Store joining date, leaving date, internship start and end dates, CNIC, father’s name and a list of completed tasks.
  • Search the employee list and filter it by department and status.
  • Export the current (filtered) list to CSV. The file includes a UTF-8 BOM so Excel opens it correctly.
  • Import employees in bulk from a CSV file.
  • Define your own custom fields under Settings and fill them in per employee.

Letters

Two letter types are built in:

  • Internship Completion Letter
  • Experience Letter

Since 1.4.0 there is also an “Other Letters” menu on the Employees page. These letter types are included:

  • Bank Account Opening Letter
  • Salary Certificate
  • Joining Letter (Letter of Appointment)
  • Promotion Letter
  • Warning Letter
  • Transfer Letter
  • Relieving Letter
  • No Objection Certificate (NOC)
  • Custom Employee Letter (you type the title and body when you generate it)

You can edit any of these or add your own letter types from the Settings screen. No coding is needed.

Every letter gets:

  • A 16-character verification ID generated with random_bytes().
  • A QR code that opens the verification page for that letter.
  • Your logo, colours, fonts, signature block and footer text.
  • An A4 layout you can print or save as PDF from the browser.

Other Letters settings

Go to Employee Verify > Settings > Other Letters to manage letter types. For each type you can set:

  • Name and slug. The name is what appears in the Other Letters menu.
  • Letter template. Plain text or HTML with {placeholders}.
  • Extra fields. Inputs the admin fills in when generating the letter, for example “Monthly Salary” or “Bank Name”. Each field key becomes a placeholder you can use in the template.
  • Email subject and body used when the letter is emailed to the employee.
  • Status. Inactive types are hidden from the Other Letters menu.
  • Allow multiple. Whether one employee can receive more than one letter of this type.

A Reset Templates to Default button restores the bundled templates and email text for the included letter types.

Verification

  • [evda_employee_verification] shows a lookup form. Visitors can search by employee ID, full name or CNIC (you choose which fields are enabled) and see the employee’s name, photo, position, department, dates and status.
  • [evda_document_verification] shows a form where visitors enter a verification ID. It also reads the ID from the URL (?id=VERIFICATION_ID), which is what the QR codes link to. The result shows the letter type, employee, issue date, whether the letter is valid or revoked, and a link to view the letter.
  • You can revoke a letter from the Documents screen. Revoked letters show as invalid on the verification page.

Letter customization

  • Company logo and header text (address, phone, website).
  • Font family, font sizes, line height, colours and page padding.
  • Editable templates for the internship and experience letters.
  • Optional signature block with signatory name, title and signature image.
  • Footer message.
  • Options to show or hide the QR code, the page border and shadow, and the title underline.
  • A live preview on the Styling tab.

Email notifications

  • Optionally email the employee when a letter is issued. The email contains a button that links to the verification page.
  • Separate subject and body for each letter type, with placeholders such as {employee_name}, {company}, {letter_type} and {verify_url}.
  • Custom colours for the email template and a “Send Test Email” button.
  • The last 100 send attempts are logged in the database.

Emails go through wp_mail(). If they don’t arrive, install an SMTP plugin.

Security

  • Admin screens and AJAX actions check nonces and require the manage_options capability.
  • Queries that include user input go through $wpdb->prepare().
  • Input is sanitized and output is escaped with the standard WordPress functions.
  • Letter links include a token generated with wp_hash(). The letter page refuses requests that don’t carry a valid token.

Placeholders

These placeholders work in letter templates and email bodies:

{employee_name} `{employee_id}` `{father_name}` `{cnic}` `{position}` `{department}` `{company}` `{joining_date}` `{leaving_date}` `{intern_start}` `{intern_end}` `{issue_date}` `{verification_id}` `{verify_url}` `{letter_type}` `{tasks_section}` `{custom_fields}`

For Other Letters, each extra field also becomes a placeholder. A field with the key salary gives you {salary}.

Privacy

The plugin stores the employee data that site administrators enter. It does not include tracking or analytics and does not contact any outside service: QR codes are generated on your own server. The public lookup forms keep a short-lived, hashed counter per visitor address (about 10 minutes) to limit repeated lookups; the address itself is not stored.

External Services

This plugin does not connect to any external service. Since version 1.5.0, QR codes are generated on your own server. (Versions before 1.5.0 requested QR images from goQR.me and Google Charts.)

License

This plugin is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or any later version.

Installation

  1. In your WordPress dashboard, go to Plugins > Add New, search for “Employee Verification & Document Authentication”, then click Install Now and Activate. (You can also upload the ZIP file under Plugins > Add New > Upload Plugin.)
  2. Create a page called “Employee Verification” and paste [evda_employee_verification] into it.
  3. Create a page called “Document Verification” and paste [evda_document_verification] into it.
  4. Go to Employee Verify > Settings > General, select the two pages you just made, and upload your company logo.
  5. Go to Employee Verify > Employees, add an employee, and click a letter button next to their name to generate your first letter.

That’s all you need to start. The database tables are created automatically when you activate the plugin. Later you can change fonts, colours and the signature under Settings > Styling, and edit the letter wording under Settings > Letter Templates and Settings > Other Letters.

FAQ

Do I need Composer or any extra libraries?

No. Letters are rendered as HTML pages sized for A4 paper. To get a PDF, open the letter and use your browser’s print dialog (Ctrl+P, then Save as PDF).

If I change the settings, do old letters change too?

Yes. Letters are rendered when they are opened, so changes to typography, colours, signature, footer and other settings show up on letters you issued before. Letters created before version 1.1.4 were stored as files; use the Convert to Live Rendering button on the Styling tab to switch them over.

How do I add a new letter type?

Go to Employee Verify > Settings > Other Letters and click Add New Letter Type. Enter a name, the template and any extra fields. Once saved, it shows up in the Other Letters menu on the Employees page.

What are extra fields?

They are inputs specific to one letter type that you fill in when generating the letter. A Salary Certificate, for example, has a “Monthly Gross Salary” field. Whatever you type is inserted into the template wherever its placeholder appears. You choose the label and the placeholder key when you set up the letter type.

Can one employee have several letters of the same type?

Internship and experience letters are limited to one per employee. For Other Letters it depends on the Allow Multiple setting of the letter type. It is on by default for types like Salary Certificate and Warning Letter.

How secure are the verification IDs?

Each ID is 16 uppercase hex characters created with PHP’s random_bytes(), so they can’t realistically be guessed. Admin actions are protected by nonces and capability checks, and database queries with user input use $wpdb->prepare().

How do I go back to the default letter templates?

Go to Employee Verify > Settings > Other Letters and click Reset Templates to Default. This overwrites the templates and email text of the included letter types with the bundled versions. Letter types you created yourself, their extra fields and your other settings are left alone.

Can I search and filter employees?

Yes. The Employees page has a search box plus department and status filters, and you can combine them. Active filters are shown above the list along with the number of matching employees.

Can I export employee data?

Yes. Click Export CSV on the Employees page. The export uses whatever search and filters you have applied, includes your custom fields, and has no row limit.

Can I import employees in bulk?

Yes. Choose a file and click Import CSV on the Employees page. Click Sample file next to it to download a file with the right column names. An exported file can be edited and imported again as it is. employee_id is required, and full_name is required for new employees. Dates use YYYY-MM-DD; status is Active, Intern or Former Employee. By default, employees whose ID already exists are skipped. Choose Update existing employees to change them instead: you are shown how many will change before anything is saved, and empty cells never erase existing details. Any problems are listed with their line numbers.

What happens to my data if I deactivate or delete the plugin?

Deactivating keeps everything. Deleting the plugin also keeps everything by default: your employees, issued documents and settings stay in the database, so printed verification IDs and QR codes work again as soon as you reinstall. Data is only removed if you tick Delete all plugin data when the plugin is deleted under Settings > General, save, and then delete the plugin.

Screenshots

Changelog

1.5.1

  • Fixed: Settings > General now shows the company logo you have chosen. The preview uses the same image lookup as the letters, so a logo that appears on letters (including SVG logos and images without a thumbnail size) also appears in Settings. If the saved logo has been deleted from the Media Library, Settings now says so.
  • Fixed: Plugin Check error: “Tested up to” is now declared only in readme.txt, not in the main plugin file header.
  • Fixed: Plugin Check warnings: the Other Letters generate handler verifies its nonce inline, the email log table name is passed through esc_sql(), and the email log clean-up query carries the complete set of phpcs annotations.

1.5.0

  • New: QR codes are now generated on your own server. No outside service is contacted, so codes work on intranets and offline hosts, pages load faster, and verification links are never sent to a third party. Existing letters and printed QR codes keep working.
  • New: Public Lookup Protection settings (Settings > General): limit lookups per visitor, choose exact or partial name search, choose which employee details visitors see, or switch the employee lookup off. Existing sites keep their current behaviour until you change these.
  • New: “Import Letters” screen for registering letters issued before or outside the plugin, now for every letter type, one at a time or by CSV.
  • New: “Email Log” screen listing every notification email the plugin tried to send.
  • New: From Name and From Address settings for notification emails.
  • Improvement: The verification forms no longer rely on a security token that expires, so they work on cached pages. The document form now puts the ID in the page address, so results can be bookmarked.
  • Improvement: Employee CSV export and import use the same column names, so an exported file can be imported again. Export includes custom fields and has no row limit. Import accepts files saved by Excel, lists problems line by line, and can update existing employees after showing how many will change.
  • Improvement: New installs get the complete default letter wording straight away, and use exact name search by default.
  • Improvement: The email log is stored in its own table instead of an option loaded on every page.
  • Fixed: Verification links created while no verification page was selected (/?evda_verify_doc=…) now show the result instead of the home page.
  • Fixed: The document type is shown by its proper name (for example “Salary Certificate”) on the verification page and in admin lists.
  • Fixed: Name search with partial matching now needs at least 3 characters.
  • Security: Messages from the server are escaped before being shown in the admin screens; letter templates are filtered again when a letter is displayed; cells that a spreadsheet could run as formulas are neutralised in CSV exports; verification results are excluded from search engines.

1.4.3

  • Fixed: Adding, editing and deleting letter types under Settings > Other Letters now saves correctly. Previously the screen reported success without storing the change.
  • Fixed: Deleting the plugin no longer removes your data unless you have explicitly chosen that. The setting is now “Delete all plugin data when the plugin is deleted” and is off by default.
  • Fixed: A revoked letter can no longer be opened as a normal letter. Visitors see a “document revoked” notice, and the Download button is hidden on the verification page. Administrators can still open the letter, marked as revoked.
  • Fixed: Emails for Other Letters now fill in the extra fields (for example the new position in a Promotion Letter) instead of showing the placeholder text.
  • Fixed: “Document not found” now returns a proper 404 page.
  • Security: Database error details are no longer shown on screen. They are written to the debug log when WP_DEBUG is on.
  • Improvement: A letter type that already has issued letters cannot be deleted; set it to Inactive instead, so issued letters keep their wording.
  • Improvement: Uninstall (when you opt in) now removes every plugin option, including letter types and their templates, and supports multisite.
  • Cleanup: Removed an unused settings file and a duplicate handler.

1.4.2

  • Docs: Rewrote readme.txt and README.md in plain language and corrected the External Services, privacy and uninstall details.
  • Tweak: Clearer wording in admin labels, help text and messages.
  • Tweak: Default email text for Other Letters now refers to the verification button instead of an attachment (applies after “Reset Templates to Default”).
  • Fix: Letter Templates tab no longer says template changes only apply to new letters.

1.4.1

  • Fix: Removed the extra top margin on the Delete buttons in Settings > Other Letters so they line up with the Edit buttons.

1.4.0

  • New: “Other Letters” system. Letter types can be added and edited under Settings > Other Letters without writing code.
  • New: Nine letter types included: Bank Account Opening Letter, Salary Certificate, Joining Letter, Promotion Letter, Warning Letter, Transfer Letter, Relieving Letter, No Objection Certificate and Custom Employee Letter.
  • New: Extra fields per letter type (for example “Monthly Salary” or “Bank Name”). They are shown in a modal when generating a letter, and each one becomes a {placeholder} in the template.
  • New: “Other Letters” menu on the Employees page listing all active letter types. New types appear there as soon as they are saved.
  • New: Letter type editor in Settings > Other Letters for name, slug, status, allow multiple, template, email subject and body, and extra fields.
  • New: “Reset Templates to Default” button that restores the bundled templates and email text for the nine included letter types.
  • New: Custom Employee Letter type. Enter the title and body when generating; all standard placeholders work.
  • New: Other Letters are stored in Documents with verification IDs, QR codes and public verification.
  • New: Other Letters can be emailed to the employee using the subject and body set for that letter type.
  • Improvement: Employee filter toolbar with department and status filters, active filter badges and a result count.
  • Improvement: Employee CSV export uses the active search and filters and includes a UTF-8 BOM for Excel.
  • Improvement: document_type column increased to VARCHAR(100); notes column changed to TEXT to hold larger JSON values.
  • Security: New AJAX endpoints (generate letter, save and delete letter type, export employees) check check_ajax_referer() and current_user_can(‘manage_options’).
  • Security: New POST inputs are unslashed and sanitized through helper methods.
  • Internship and Experience letters work the same as before.

1.3.4

  • Fixed: Plugin Check SQL warnings. EVDA_Employee::get_all() and count() now use a fixed query for each filter combination.
  • Fixed: WordPress.DB.PreparedSQL warnings (NotPrepared, InterpolatedNotPrepared, ReplacementsWrongNumber, UnfinishedPrepare, UnescapedDBParameter).
  • Fixed: Added a translators comment to the employee count string in the filter bar.
  • Improvement: Employee filter and export now pass WordPress Plugin Check (PCP).

1.3.3

  • New: Employee filter bar with department and status filters and active filter badges.
  • New: Export employees matching the current filters to CSV.
  • Improvement: Filters are kept when moving between pages of results.
  • Improvement: Redesigned toolbar with search, dropdowns and action buttons.
  • Security: Export AJAX handler checks check_ajax_referer() and current_user_can() and only accepts known status values.

1.3.2

  • Security: Reviewed nonces and permissions on all AJAX handlers. A nonce is never the only authorization check.
  • Security: Reviewed output escaping on all echo statements.
  • Security: Database error messages are no longer shown in the browser.
  • Fixed: QR code not showing on the document verification page.
  • Fixed: Added a base64 fallback so the QR code area never shows a broken image.

1.3.1

  • Fixed: Removed remaining inline script and style tags (wp_enqueue compliance).
  • Fixed: Added current_user_can() and wp_verify_nonce() checks to page_employees().
  • Fixed: Escaping on echo statements.
  • Fixed: Table name variables are wrapped with esc_sql(validate_table()); dbDelta() is used for schema changes.
  • Fixed: QR code domain validation.
  • Fixed: Removed empty folders.

1.3.0

  • Removed inline script and style tags in favour of enqueued files.
  • Added current_user_can() and wp_verify_nonce() checks across admin pages.
  • Replaced echo build_letter() with the EVDA_PDF::output_letter() method.
  • Replaced raw $wpdb->query() schema changes with dbDelta().
  • Renamed all ev_/EV_ identifiers to evda_/EVDA_.

1.2.7

  • Added saqibabbasi as a contributor.
  • Replaced the inline style block in the letter renderer with a PHP variable.
  • Added server-side token validation to the QR image AJAX endpoint.
  • Renamed classes, functions, constants, AJAX actions and option names from the ev_/EV_ prefix to evda_/EVDA_.

1.2.6

  • Fixed the last Plugin Check warning by adding phpcs:ignore to the is_uploaded_file() line.

1.2.5

  • Fixed remaining Plugin Check warnings: wp_unslash() on email colour fields, phpcs blocks around multi-line queries, and sanitization in array_map calls.

1.2.4

  • Fixed Settings page tabs not switching after the JavaScript refactor.

1.2.3

  • Added the evda_ prefix to shortcodes.
  • Moved inline script and style blocks to enqueued files.
  • Removed the qrcodejs CDN dependency. QR codes are now created on the server.
  • Added the External Services section to the readme.

1.2.2

  • Fixed Plugin Check warnings: wp_unslash(), output escaping with esc_html/esc_attr/esc_url, and isset() checks on POST and FILES data.

1.1.7

  • Centered the footer text on letters.
  • Updated the plugin header for the WordPress.org directory.

1.1.6

  • Tasks and responsibilities are shown in a three-column grid on letters.

1.1.5

  • Fixed live letter URLs that contained the dynamic: prefix and returned “Document not found”.

1.1.4

  • Letters are now rendered each time they are opened, so settings changes apply to existing letters.
  • Letters are no longer stored as static HTML files.
  • Added a one-click tool to convert existing static letters.

1.1.3

  • Fixed deleting a document not removing its file from disk.
  • Fixed the patch counter showing the wrong number.

1.1.2

  • The footer now stays at the bottom of the A4 page.
  • Added a custom footer message field.

1.1.1

  • Fixed a fatal error on plugin deactivation.

1.1.0

  • Fixed the WordPress admin footer appearing inside the settings panel.
  • Letters are now a fixed A4 size (794 x 1123 px on screen, 210 x 297 mm in print).

1.0.9

  • Added a signature block setting: on/off, name, title and image.
  • Added a one-click tool to remove the old “Authorized Signatory” block from existing letters.

1.0.8

  • Added a setting to choose which fields visitors can search by (Employee ID, Full Name, CNIC).

1.0.7

  • Added Father Name, CNIC, Tasks Completed and Leaving Date fields.
  • Added custom fields with per-employee values.
  • Letter templates can now be edited, with placeholder support.
  • Settings page now uses tabs.