Skip to content

The add-on ships two templates. A developer can replace either one from a child or parent theme without a filter: copy the file to {theme}/reign-wp-job-manager-addon/ keeping the same path, and edit the copy.

Template Printed by Hook it runs on Override path
templates/job/poster.php Poster link the theme action reign_job_section_company, which passes the job ID reign-wp-job-manager-addon/job/poster.php
templates/job/related.php Related jobs the section related (area main, priority 40) in the filter reign_job_layout_sections reign-wp-job-manager-addon/job/related.php

Each template starts with a comment that says what it prints, which hook runs it and how to override it, and carries an @version. When the add-on’s version number is higher than the one in your copy, compare the two files.

For a full worked override, step by step, see Common changes with a few lines of code.

poster.php prints “Posted by” and a link, and nothing when the toggle is off or the poster has no profile URL. The URL comes from bp_members_get_user_url, then bp_core_get_user_domain, then PeepSo. poster.php receives $args['url'] (the profile URL) and $args['name'] (the display name). related.php receives $args['jobs'], a WP_Query of the related jobs; it must call wp_reset_postdata() after its loop.

The add-on fires no actions or filters of its own. It adds two filters to the Reign panel and licence code, and uses these theme and plugin hooks:

  • Reign panel: alter_reign_admin_tabs (adds the WP Job Manager tab), the action render_theme_options_page_for_wpjm (draws it) and reign_licensed_products (registers the add-on for updates under Reign Settings > License).

  • Reign layout switches: reign_job_layout_enabled and reign_resume_layout_enabled; return false to turn the theme layer off.

  • Reign: reign_job_layout_sections, reign_job_section_company, reign_job_detail_fields, reign_resume_detail_fields, and the function reign_wpjm_layout().

  • WP Job Manager and Resume Manager: submit_job_form_fields, submit_job_form_fields_get_job_data, submit_resume_form_fields, submit_resume_form_fields_get_resume_data.

  • WordPress: body_class, wp_enqueue_scripts, admin_init, init, admin_notices, the WP-Cron event reign_jb_upgrade, and comments_clauses (repairs a comment query when WP Job Manager Applications and WooCommerce are both active).

Item When
Body class reign-jb-reading Reading layout on a job or resume page; loads layout.css
Body class reign-jb-jobs-grid Grid job list; loads lists.css on the list pages
Body class reign-jb-resumes-rows Rows resume list; loads lists.css on the list pages
.reign-jb-related, .reign-jb-poster The Related jobs and poster markup; related.css loads only when a job has related jobs

The settings screen styles and script load only on its own tab.