Heyrecruit Job Sync

Description

On its own, the Heyrecruit plugin fetches your jobs live from Heyrecruit on every page view, and all jobs share one detail page. Heyrecruit Job Sync creates a WordPress post for every job instead and keeps it up to date automatically.

  • One URL per job under /stellen/, plus archive pages by department, location and employment type.
  • In the sitemap: the job pages are listed in the WordPress sitemap.
  • Google for Jobs: every published job page carries JobPosting markup (JSON-LD) with title, description, location, employment type, salary (if it is shown on your career page and not excluded from multiposting in Heyrecruit) and your company. The URL in the markup is your job page, not the Heyrecruit posting. This also applies to jobs you do not send to Google for Jobs from Heyrecruit.
  • Made for job pages: in block themes, the job pages get a template of their own – the header and footer of your theme, the job title and text, nothing meant for blog posts such as author, categories, comments or links to other posts. You can customise it in the Site Editor under “Single Job”.
  • Application form included: the location picker and the application form are added below every job page. It is the same form as on the detail page of the Heyrecruit plugin.
  • Images in your media library: the header image of a job becomes the featured image of its page, and images in the job text appear in the text. The sync copies them into your media library once, so the job pages do not load anything from Heyrecruit. The sample photos Heyrecruit shows when you have not uploaded an image of your own are left out.
  • Old links keep working: requests to the previous detail page with ?jobId= are redirected permanently (301) to the new job page. Campaign parameters such as utm_source are kept unchanged and in their order, and the location chosen in the job overview stays selected in the application form.
  • Survives API outages: the job pages are served from WordPress. If Heyrecruit cannot be reached, they stay online, and the sync does not take any job offline in that case.

The sync runs every 15 minutes through WP-Cron. Jobs that are not published in Heyrecruit are kept as drafts in WordPress. Jobs that disappear from Heyrecruit are taken offline, but not deleted.

The extension requires the Heyrecruit plugin, version 1.4.2 or later. Credentials, key color and all other settings come from there.

For questions and feedback, write to info@heyrecruit.de.

External services

This plugin connects to the Heyrecruit API (https://app.heyrecruit.de/api/v2/), the recruiting software your jobs are managed in. Without it, the plugin has nothing to synchronise.

  • What is sent and when: on every sync run – every 15 minutes through WP-Cron, and when you click “Preview” or “Synchronise now” on the Job Sync page – the plugin authenticates with the Client ID and Secret Key from the Heyrecruit plugin and requests the list of your jobs, the details of changed jobs and your company details (name, website, logo). It downloads the images of changed jobs from Heyrecruit once and stores them in your media library. No data about your visitors is sent during a sync, and the job pages load no images from Heyrecruit.
  • Applications: when a visitor submits the application form on a job page, the Heyrecruit plugin sends the entered data and the attached documents to Heyrecruit, together with the campaign values of the visit (utm_source, utm_medium, utm_campaign, utm_content, utm_term, utm_away), if the visitor arrived through such a link, and the address of the job page. The form and its submission belong to the Heyrecruit plugin; this extension only places the form on the job page.

Heyrecruit is provided by Heyrecruit (https://www.heyrecruit.de). Terms of service: https://www.heyrecruit.de/agb – Privacy policy: https://www.heyrecruit.de/datenschutz

Screenshots

Installation

  1. Install and activate the Heyrecruit plugin first and enter your Client ID and Secret Key there.
  2. Install and activate Heyrecruit Job Sync.
  3. In the Heyrecruit menu, open Job Sync. Preview without writing shows what the first run would do without changing anything.
  4. Start the first run with Synchronise now. After that, the sync runs every 15 minutes on its own.

FAQ

Why does the sync run irregularly?

WP-Cron only runs when someone opens your site. On a career site with few visitors, that can take hours. Set up a real cron job on your server instead – the command to copy is shown on the Job Sync page. If DISABLE_WP_CRON is set in your wp-config.php, the sync does not run at all without that cron job, and the Job Sync page tells you so.

Can I rename /stellen/?

Yes, with the filter heyrecruit_job_post_type_slug. Save the permalink settings once afterwards so WordPress knows the new addresses.

Can I place the application form myself?

Return false from the filter heyrecruit_append_application_form. The extension then no longer adds the form automatically.

How do I change the look of the application form?

The extension gives the form a basic style: framed fields, spacing and a submit button in your key color. The key color comes from the Heyrecruit plugin. Everything is inside the element .hr_job_application, so your own CSS only needs that class, for example in Appearance > Customize > Additional CSS:

.hr_job_application { --hr-form-radius: 0; --hr-form-border-color: #999; --hr-form-field-width: 100%; }

These variables set the corner radius, the border color, the maximum field width and (–hr-form-gap) the spacing between fields. To style the form entirely yourself, return false from the filter heyrecruit_job_page_styles. The basic style is then not loaded.

My theme has its own template for job pages. Which one is used?

Yours. The template of the extension only applies if neither your theme (templates/single-heyrecruit_job.html) nor the Site Editor provides one. To switch it off entirely and use the “single” template of your theme, return an empty string from the filter heyrecruit_job_block_template. Classic themes are not affected; they use their own PHP templates.

My SEO plugin already outputs JobPosting markup. What now?

Google treats two JobPosting blocks on one page as an error. Return an empty array from the filter heyrecruit_job_structured_data, and the extension outputs no markup of its own. You can also use the same filter to change the markup before it is output.

Which company appears in the markup?

Name, website and logo from your Heyrecruit account. The sync reads them again on every run, so a change reaches all job pages. Until the first run has finished, the name of your WordPress site is used.

What happens when I deactivate or uninstall the plugin?

When you deactivate it, the sync stops and the addresses under /stellen/ are no longer available. The previous detail page with ?jobId= works as before again. When you uninstall it, the settings of the extension are removed. The job posts stay in the database. If you activate the extension again, the sync reassigns them to their jobs.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Heyrecruit Job Sync” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Heyrecruit Job Sync” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.1

  • Job pages show the images from Heyrecruit. Until now, the sync left out every image: the job pages had neither the header image nor the images in the job text. The header image is now the featured image of the job page, and the job page template of the extension shows it above the title. Images in the job text appear where they are in Heyrecruit. The sync copies each image into your media library once and uses that copy; a featured image you chose yourself in WordPress stays. If an image cannot be downloaded, the sync tries again with the next runs. Existing job pages get their images with the one-time fetch after the update.
  • Headings in the job text are back in place. If a text block in Heyrecruit contained several headings, all of them were shown together above the text. “Your tasks”, “Your profile” and “What we offer” were stacked at the top, and a heading from the middle of the text appeared right under the job title like a second title. The headings now stand above the paragraphs they belong to. After the update, the sync fetches every job once more so that existing job pages are corrected too, even if nothing changed in Heyrecruit.
  • The application form has a basic style. Until now, the form on the job page only got the layout from the Heyrecruit plugin and looked unformatted in many themes. It now has framed fields, spacing and a submit button in your key color. You can adjust it with a few CSS variables or switch it off with the filter heyrecruit_job_page_styles (see FAQ).
  • Campaign values survive the redirect from old links unchanged. When a link to the previous detail page carried a parameter twice, only the last value arrived on the job page. Job boards such as Jooble add their own utm values behind ours, so the application was assigned to the job board instead of the original source. Encoded characters were also lost: “Summer%26Autumn” became two parameters, and an apostrophe disappeared. The redirect now passes the parameters on exactly as they arrived, apart from jobId.
  • The location chosen in the job overview stays selected. The overview lists a job once per location. After a click on “Hamburg”, the application form on the job page still preselected the first location of the job, and an applicant who did not check the picker applied for the wrong location. The redirect now passes the location on, as long as the job is still published there.
  • A hidden salary no longer reaches Google. The Google for Jobs markup that the extension builds itself carried the salary even if it was set not to be shown on the career page or excluded from multiposting in Heyrecruit. It now follows the same rules as the markup from Heyrecruit: the salary is only included if it is visible and not excluded, if its unit is known and if a maximum is set. An hourly wage is marked up per hour; until now, everything except a monthly salary was marked up as a yearly salary, so 15.50 euros per hour appeared as 15.50 euros per year. Existing job pages are corrected by the same one-time fetch after the update.
  • Publishing a job updates its whole page. If a job was synchronised as a draft and published in Heyrecruit afterwards, or moved to another location without a change to its text, the sync only switched the page online. The application form then had no location picker or still offered the old location, and Heyrecruit rejected applications for a location where the job is no longer published. The Google for Jobs markup lacked the posting date. The sync now fetches a job in full whenever its published locations change; taking a job offline still needs no extra call.
  • The privacy link in the application form survives the sync. WordPress removed backslashes when the sync stored the form, so the link text of the consent checkbox no longer matched (“Datenschutzerklu00e4rung”) and the link to the privacy text was missing on every job page. The one-time fetch after the update corrects existing job pages.
  • No duplicate job pages. Clicking “Synchronise now” while a scheduled run was starting could create a new job twice. The second page was never updated again and stayed online even after the job was taken offline in Heyrecruit. Only one run works at a time now; a click during a run says so.
  • A job whose details cannot be fetched no longer stops the sync: after three attempts it is skipped and tried again with the next full comparison. If the job list from Heyrecruit is cut off, no job is taken offline. The result line counts jobs that go online again as updated, and no longer shows “republished”.
  • Requires Heyrecruit 1.4.2, which sends the campaign values with the application.

1.0.0

  • First release. The sync was previously planned as an integration mode of the Heyrecruit plugin and is now an extension of its own. Whether it runs depends only on whether the extension is active; there is no mode switch.
  • Google for Jobs markup on every published job page, with your company from Heyrecruit as hiringOrganization.
  • A block template of its own for job pages in block themes, so they no longer show an empty author line, categories, comments or blog navigation.