WordPress.org

Plugin Directory

AfterDone Pay Transparency – Salary Range & Benefits for Job Posts

AfterDone Pay Transparency – Salary Range & Benefits for Job Posts

Description

AfterDone Pay Transparency adds a pay range, benefits, and other compensation to job posts.

Use it to show a salary range (pay range) on every job listing, list benefits, and keep pay information consistent across a careers page. It works with WP Job Manager, HireZoot, and Simple Job Board, and with any public post type you choose.

It can show that information with a block, a shortcode, or an optional append to the content. It also adds baseSalary to JobPosting data when the amount is complete.

A pre-publish checklist compares the saved fields with a bundled list of sources. The list is a file in the plugin. It is not downloaded. The checklist uses a check mark or a warning mark. It does not block publishing.

This plugin is a tool that helps you add and display pay information. It is not legal advice. Whether a law applies depends on employer size, where the work is done, remote arrangements, and national or state implementation. Ask a qualified lawyer.

The bundled rows are not a complete list. Each row shows the source that was opened and the date it was opened. A place with no row was not confirmed for this version. That is not a statement that no law exists.

Fields

  • Pay type: range, fixed amount, hourly, commission, or tipped.
  • Minimum, maximum, currency, and unit (hour, day, week, month, or year).
  • Benefits and other compensation.
  • Application close date. Colorado’s bundled row uses this for the date the application window is anticipated to close.
  • Applicable collective agreement. Optional. It is shown on the job when it is filled in. Spain’s bundled row asks for the collective agreement that applies.
  • A flag that pay information is shown before an interview.
  • Work locations: US states and DC, New York City, Jersey City, Cleveland, Columbus, the EU-27, and Remote. Selecting New York City also shows the New York State row.

The fields are registered with register_post_meta and show_in_rest. The block editor has a sidebar. The classic editor has a meta box.

Job plugins

When the plugin is active, fields are added for:

  • WP Job Manager (job_listing), including the front-end submit form.
  • HireZoot (awsm_job_openings).
  • Simple Job Board (jobpost).

Settings can add any other public post type. An integration is skipped when its plugin is not active.

Display

The Pay & benefits block and the [ptjp_pay] shortcode print the saved fields. An optional setting appends the same box to the content when the block and the shortcode are not already there.

JobPosting

baseSalary is a `MonetaryAmount` with a `QuantitativeValue` minimum, maximum, and `unitText`. WP Job Manager listings are merged with `wpjm_get_job_listing_structured_data`. HireZoot listings are merged with `awsm_job_structured_data` when HireZoot prints its own JobPosting. Other post types get a JSON-LD script when no other JobPosting is present. That choice is filterable.

Checklist and audit

Select work locations on the post. The checklist shows the bundled rows that match, including a row whose date is still in the future. Tools Pay Transparency Audit lists posts, filters them, and exports CSV. The export prefixes a cell that could be read as a spreadsheet formula.

Salary-history questions

A scan that does not edit forms looks at Contact Form 7, WPForms, Gravity Forms, Fluent Forms, and HireZoot form definitions for phrases shipped in data/phrases.json (English, German, Spanish, French, Italian, Dutch, and Polish). A match is labeled “Possible issue, review.” The scan does not decide that a question is unlawful.

Privacy

The plugin does not phone home, load a remote file, or send analytics. It does not collect applicant data.

Need a simple pay stub for your records too? Take a look at Paystub Generator by 10DollarSoft.

External services

None. This plugin does not connect to an external service. The rules and the phrase list are files in the plugin. Nothing is sent to a server operated by the plugin author.

Source code and build

The stylesheets in assets/css/ (admin.css and front.css) and the scripts in assets/js/ (block.js, classic.js, and editor.js) are the source that ships. They are written by hand and are not minified. There is no generated file and no build step, so this copy does not include a package.json or a bundler config.

Blocks

This plugin provides 1 block.

  • Pay & benefits Shows the pay range and benefits saved on this job.

Installation

  1. Upload the afterdone-pay-transparency folder to /wp-content/plugins/, or install the zip from the Plugins screen.
  2. Activate AfterDone Pay Transparency – Salary Range & Benefits for Job Posts.
  3. Open Settings Pay Transparency if you want a default currency, extra post types, or the content append.
  4. Edit a job. Use the Pay & benefits sidebar or the classic meta box.
  5. Place the Pay & benefits block, or [ptjp_pay], where the pay should appear.

FAQ

Is this legal advice?

No. This plugin is a tool that helps you add and display pay information. It is not legal advice. Ask a qualified lawyer about the posting you are writing.

Does the checklist block publishing?

No. A warning mark means a bundled row and the saved fields do not line up. You can still publish. A separate add-on can use the ptjp_can_publish filter. This plugin does not stop the publish request.

What are the application close date and the collective agreement field?

The application close date is the date the application window is anticipated to close. Colorado’s bundled row asks about that date. The applicable collective agreement is an optional text field. It is printed on the job when it has been filled in. Spain’s bundled row asks for the collective agreement that applies. These fields help you display information you choose to enter. They are not legal advice.

Where do the rules come from?

data/rules.json is shipped with the plugin. Each row has a jurisdiction, a date, a threshold written out in words, the items it asks about, an official source URL, and the date that source was opened. Rows that could not be confirmed from an official source were left out.

What does an EU row mean?

Directive (EU) 2023/970 binds Member States. Employer duties come from national law. The checklist shows the Article 5 baseline and, where this version confirmed it from EUR-Lex, whether that Member State had communicated a transposition measure.

Does it work with WP Job Manager’s own salary field?

WP Job Manager stores a salary in _job_salary, with _job_salary_currency and _job_salary_unit. This plugin does not delete or replace those fields. When this plugin’s minimum and maximum are both empty, a numeric _job_salary is used as a fallback for the pay display, the checklist, and JobPosting baseSalary. A single amount is treated as a fixed amount. Two amounts separated by a hyphen, dash, or “to” are treated as a range. Text that is not a number, such as “Competitive”, is left unused. Currency is taken from _job_salary_currency when it is a three-letter code. When that value is empty and WP Job Manager is active, the currency WP Job Manager would use for the listing is used if it is a three-letter code. The unit is taken from _job_salary_unit (HOUR, DAY, WEEK, MONTH, or YEAR). When that value is empty and WP Job Manager is active, the unit WP Job Manager would use is used. Amounts saved in this plugin’s fields are kept. A complete amount from this plugin, including that fallback, is what gets written into the baseSalary value on WP Job Manager’s JobPosting data. Saving in the classic editor can store the fallback in this plugin’s fields. The block editor leaves the WP Job Manager fields as they are until you enter pay in the Pay and benefits sidebar.

Will Google show the salary?

The plugin adds baseSalary to JobPosting data. Whether a search engine shows it is up to the search engine.

Which places are in the bundled list?

data/rules.json ships these places: Washington, Massachusetts, Vermont, Rhode Island, New Jersey, District of Columbia, New York City, California, Colorado, Connecticut, Delaware, Hawaii, Illinois, Maine, Maryland, Minnesota, Nevada, New York, Virginia, Columbus, Ohio, Cleveland, Ohio, and Spain. It also ships the European Union Article 5 baseline, plus member-status rows for Croatia, Cyprus, Denmark, France, Germany, Spain, Hungary, Ireland, Luxembourg, Netherlands, and Portugal. A place with no row was not confirmed for this version. Rules can change. This is not legal advice and it is not a complete list of every pay law.

Does the plugin track visitors or call an API?

No.

Can a separate add-on extend this plugin?

Yes. The hooks are listed below. There is no license check in this plugin. A developer copy of the same list is in HOOKS.md in the project, outside this plugin’s install folder.

  • ptjp_rules filters the bundled rows.
  • ptjp_checklist_items filters the checklist.
  • ptjp_can_publish defaults to true. This plugin does not block publishing.
  • ptjp_render_pay_html filters the pay HTML.
  • ptjp_schema_base_salary filters the baseSalary object.
  • ptjp_other_jobposting_present skips this plugin’s JSON-LD when another JobPosting is present.
  • ptjp_scanner_sources adds a form source that does not edit the form.
  • ptjp_integrations adds a post type when that integration is active.

Where is the source for the editor scripts?

See Source code and build. The files in assets/js/ are the scripts that ship.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“AfterDone Pay Transparency – Salary Range & Benefits for Job Posts” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.3

  • Readme: added related tools note.

1.0.2

  • Plugin name is AfterDone Pay Transparency – Salary Range & Benefits for Job Posts. The directory slug and text domain are afterdone-pay-transparency.
  • Saved pay fields, the ptjp_settings option, the [ptjp_pay] shortcode, and the ptjp/pay-benefits block stay as they were.
  • Styles and scripts are loaded with wp_enqueue_style and wp_enqueue_script. JobPosting JSON-LD is printed with wp_print_inline_script_tag.
  • The stylesheets and scripts in assets/ are the human-readable source. See Source code and build.

1.0.1

  • Added rows: CA, CO, CT, DE (future), HI, IL, ME, MD, MN, NV (after interview), NY State, VA, Columbus (2027-01-01), Cleveland, Spain.
  • Copy fixes.
  • When this plugin’s pay minimum and maximum are empty, a numeric WP Job Manager _job_salary is used as a fallback. The WP Job Manager salary fields are not replaced.

1.0.0

  • Initial release.