Greenhouse application form on WordPress

View as Markdown

Candidates apply on your WordPress site and land in Greenhouse. The form, its questions, what happens on submit, and the log.

Quick answer

Save a Job Board API key and each job page shows a form built from its Greenhouse questions. Candidates apply on your site. The application lands in Greenhouse on that job. Answers and files are never kept on your site.

On this page

With a Job Board API key, candidates apply on your job pages. Each application arrives in Greenhouse on that job.

Why this matters: visitors from a Greenhouse tracking link keep their source when they apply. See what gh_jid and gh_src mean.

Turn on the embedded job application form on your job pages

  1. Create a Job Board API key in Greenhouse. No partner approval is needed.
  2. Leave Greenhouse → Settings → Applications on Automatic, or pick On-site application form.

The form replaces the Apply on Greenhouse button on every job page. Each job’s JobPosting data then says directApply: true: candidates can apply on the page.

To keep the button with a key saved, pick Send applicants to Greenhouse.

The on-site application form on a job page: Apply for this job, then first name, last name, email, phone, resume and cover letter
The top of the application form on a job page.

What the Greenhouse application form asks

The form is built from each job’s questions in Greenhouse. So different jobs can ask different things. The order:

#SectionShown when
1First name, Last name, Email, PhoneAlways. The first three are required; Phone when the job requires it.
2The job’s questions, in Greenhouse’s orderAlways. Includes Resume/CV and Cover Letter (file or pasted text) and custom questions.
3Location questionsThe job asks where the candidate is based.
4Education and employment historyThe job asks for them.
5EEOC and demographic questionsThe job has them.
6Consent checkbox, must be tickedTurned on in settings, or the job requires GDPR consent in Greenhouse.

A job with Greenhouse’s AI disclaimer shows it above the form. It adds a Request to opt out of AI review link when the job has an opt-out address.

Greenhouse typeForm input
Short textText box (email or phone box for those fields)
Long textText area
Single selectRadio buttons for up to four options, a dropdown for more
Multi selectCheckboxes
Yes/NoYes and No radio buttons. “No” is sent as a real answer.
FileFile upload
HiddenNot shown or filled in

Greenhouse accepts an application even with a required answer missing. So the plugin checks every required question before anything is sent.

Every control has a label. Errors are linked to their fields. After a submit, focus moves to the first field to fix, or to the message.

Questions are cached for an hour. After changing them in Greenhouse, click Clear cache under Greenhouse → Settings → Tools.

Education and employment history

A job that asks for these gets the section, required or optional as the job says.

EducationEmployment
FieldsSchool, Degree, Discipline, start and end month and yearCompany, Title, start month and year, I currently work here, end month and year
Required once an entry is startedSchool, degree, disciplineCompany, title, start date. End date unless I currently work here is ticked.
DatesOptional. Month and year go together.
EntriesUp to 5 with Add another; one without JavaScriptSame
Years offeredFrom 60 years ago. Start years stop at this year; end years reach 6 years ahead.Same

A required section needs one entry; blank entries in an optional one are skipped. An end date before the start, or a start month in the future, is refused.

Degree and discipline lists come from your Greenhouse account, cached for a day. If they can’t load, the section is left out and tried again after 5 minutes. A job that requires education then shows the Apply on Greenhouse button.

School suggestions appear from the second character typed. A typed school is matched on send: an exact name, or the only match. Otherwise the applicant is asked to “Pick your school from the list of suggestions.”

Suggestions come from GET /wp-json/ghjb/v1/education/schools?term=. It answers only while applications are on-site. One IP address, or IPv6 /64 network, can send 30 searches a minute to Greenhouse; cached answers don’t count.

EEOC and demographic answers

EEOC questions (gender, race, veteran status, disability status) are always optional. Demographic questions follow the job’s settings in Greenhouse.

If the job asks for consent to demographic data, a Demographic data consent checkbox comes first. Answers are sent only when it is ticked.

These answers go to Greenhouse only. They are never stored on your site: not in the log, the emails or WordPress’s personal data export.

File uploads

RuleDetail
File typesPDF, DOC, DOCX, TXT, RTF, ODT
SizeUp to 5 MB. Your PHP upload_max_filesize also applies.
While sendingA temporary copy under a random name in wp-content/uploads/ghjb-tmp, closed to web access on Apache
After sendingDeleted straight away. A leftover from an interrupted request is removed by the next upload once it is an hour old.
Media LibraryFiles never enter it.
File nameThe original name still goes to Greenhouse.

What happens when someone applies

Four steps. 1: the applicant sends the form on your job page. 2: your site checks the rate limit, that the job is open, the honeypot and captcha, and required answers and files; if a check fails, the applicant sees why and nothing is sent. 3: the application goes to Greenhouse with your Job Board API key. 4: Greenhouse accepts it; the applicant sees the thank-you message, the job's Applications count goes up, emails go out if on, and the Submissions log gets an entry.

The form sends in the background, without a page reload. Without JavaScript it posts as a normal form.

A sent application reloads the page with ?ghjb_applied=<job ID>, so a reload never sends it twice. A failed one keeps the typed answers; files need attaching again.

The checks run in this order. The applicant sees the message when one fails:

CheckMessage
Rate limit: 10 attempts per 10 minutes per IP address or IPv6 /64 network. Every attempt counts.“Too many applications submitted from this connection. Please try again later.”
The job is still open on your site.“This job is no longer available.”
A hidden honeypot field bots tend to fill in.“Your submission could not be processed.”
Logged-in users only: the page is not stale.“Your session expired. Please reload the page and try again.”
Turnstile or reCAPTCHA, when both keys are saved. It resets after any error.“Spam protection check failed. Please try again.”
Required answers, file types and sizes.“Please correct the highlighted fields and try again.”, plus a message on each field

Behind a proxy, set the real visitor address with the ghjb_client_ip filter. Otherwise all applicants share one limit.

Field messages include “First name is required.”, “Please enter a valid email address.” and “The file is too large. Maximum size is 5 MB.”

Then the application goes to Greenhouse:

OutcomeWhat the applicant sees
Greenhouse accepts it“Thank you — your application has been submitted.”
Rejects answers, names the fields“Please correct the highlighted fields and try again.”, with those fields marked
Rejects answers, names no field on the form“Greenhouse could not accept this application. Please check your details and try again.”
Rejects the API key“Applications are temporarily unavailable. Please try again later.”
Is busy“Greenhouse is busy right now. Please try again in a moment.”
Anything else“Your application could not be sent. Please try again later.” Details go to Submissions.

On success, the job’s Applications count goes up. The application emails go out if on.

A visitor from a Greenhouse tracking link (?gh_src=) keeps that source for 30 days. It is sent with the application, so Greenhouse credits the right source.

When the API key stops working

The key is used for one thing only: sending applications. Job lists, pages and questions come from your public job board.

If Greenhouse rejects the key, say after it is deleted there, the form stays up but applications fail. Applicants see “Applications are temporarily unavailable. Please try again later.”

An admin notice names the fix. Create a new Job Board API key and save it under Greenhouse → Settings. The notice clears when you save a new key, dismiss it, or after a day.

When a job shows the Apply on Greenhouse button

A job shows the button instead of the form when:

  • Applications is Send applicants to Greenhouse, or no key is saved;
  • its questions can’t be loaded, say while Greenhouse is down (tried again after a minute);
  • it requires education, and the degree and discipline lists can’t be loaded.

The button links to the job on your Greenhouse job board. That address may point back at your own site, as Greenhouse’s embed does. Then it links to Greenhouse’s hosted form instead:

https://job-boards.greenhouse.io/embed/job_app?for=<board token>&token=<job ID>

An EU board uses job-boards.eu.greenhouse.io.

The Submissions log

The Submissions log in wp-admin listing recent application attempts with job, applicant, status and message
Greenhouse → Submissions: each attempt with its outcome. Applications themselves live in Greenhouse.

Greenhouse → Submissions lists the last 100 attempts, newest first. It is on by default (Log submissions under Greenhouse → Settings → Features).

Each entry shows
When and whatThe time, the job and its Greenhouse ID
WhoThe applicant’s name and email, and a shortened IP address
StatusDelivered, Failed or Email failed
MessageOn a failure, the error in plain words. When Greenhouse answered: its HTTP status and reply.

Greenhouse returns no candidate ID, so entries don’t link to the candidate. Find them in Greenhouse by name or email.

Log detail
Not storedAnswers and files. They go only to Greenhouse.
FilterDelivered or Failed
Blocked attemptsHoneypot, captcha and rate-limit blocks are counted, not listed.
Empty itClear log
Personal data toolsIncluded in Tools → Export Personal Data and Erase Personal Data, matched by email
WP LogsIf active, each attempt is written there too, without name or email.

Developer hooks

HookTypeUse it to
ghjb_application_fieldsfilterChange the whole form: add, remove or reorder groups of fields. Receives the groups and the job.
ghjb_map_application_groupfilterChange how one Greenhouse question becomes a group of inputs. Receives the group and Greenhouse’s question.
ghjb_map_application_fieldfilterChange how one Greenhouse field becomes a form input. Receives the field and Greenhouse’s field.
ghjb_application_payloadfilterChange the application data sent to Greenhouse. Receives the data, the groups and the submitted values.
ghjb_allowed_file_typesfilterChange the accepted file extensions. Default pdf, doc, docx, txt, rtf, odt.
ghjb_max_upload_sizefilterChange the maximum upload size, in bytes. Default 5242880 (5 MB).
ghjb_application_validation_errorsfilterAdd your own field checks. Receives the errors, the groups, the submitted values and the files.
ghjb_application_success_messagefilterChange the thank-you message.
ghjb_application_rate_limitfilterChange the number of application attempts allowed per IP address in each window. Default 10; 0 turns the limit off.
ghjb_application_rate_windowfilterChange the rate limit window, in seconds. Default 600, minimum 60.
ghjb_application_form_ttlfilterChange how long a job’s questions are cached, in seconds. Default 3600.
ghjb_application_form_error_ttlfilterChange how long a failed question load is remembered, in seconds. Default 60.
ghjb_application_form_failure_ttlfilterChange how long a question load that Greenhouse refused (HTTP 401 or 403) is remembered, in seconds. Default 300.
ghjb_submission_log_maxfilterChange how many attempts the Submissions log keeps. Default 100.
ghjb_client_ipfilterChange how the applicant’s IP address is detected, for example behind a proxy.
ghjb_recaptcha_score_thresholdfilterChange the minimum reCAPTCHA v3 score. Default 0.5.
ghjb_application_submittedactionRun code after Greenhouse accepts an application. Receives the Greenhouse job ID, the job, Greenhouse’s response and the applicant’s name, email and phone.
ghjb_application_loggedactionRun code after any attempt is logged. Receives the log entry.
ghjb_admin_notification_emailfilterChange the hiring team email, or return false to skip it. Receives the to, subject, message and headers, the job, the applicant and Greenhouse’s response.
ghjb_applicant_confirmation_emailfilterThe same for the applicant’s confirmation.

For the education and employment sections:

HookTypeUse it to
ghjb_application_section_groupsfilterAdd or change the education and employment sections. Receives the section groups and the job.
ghjb_application_request_datafilterChange the submitted values before they are checked and sent. Receives the values, the groups and the job.
ghjb_complex_payload_keysfilterChange the Greenhouse key each section is sent under. Default education → educations, employment → employments.
ghjb_section_max_entriesfilterChange how many entries a section takes. Receives the limit and the section name. Default 5.
ghjb_section_year_rangefilterChange the years the date dropdowns offer. Receives first and last. Start years never go past this year.
ghjb_education_lists_ttlfilterChange how long the degree and discipline lists are cached, in seconds. Default 86400.
ghjb_education_lists_failure_ttlfilterChange how long a failed list load is remembered, in seconds. Default 300.
ghjb_school_search_rate_limitfilterChange how many school searches a minute one IP address may send on to Greenhouse. Default 30; 0 turns the limit off.

Example: post to a Slack channel whenever Greenhouse accepts an application.

add_action( 'ghjb_application_submitted', function ( $job_id, $job ) {
	wp_remote_post(
		'https://hooks.slack.com/services/XXXX/XXXX/XXXX',
		array(
			'headers' => array( 'Content-Type' => 'application/json' ),
			'body'    => wp_json_encode( array( 'text' => 'New application: ' . $job['title'] ) ),
		)
	);
}, 10, 2 );

Put your Greenhouse jobs on your own site

Each job gets its own page. $69 a year, not on sale yet.

We use your email only to tell you about the launch. Privacy Policy