jobrelay_wpcon_job_schema_salary_units

apply_filters( 'jobrelay_wpcon_job_schema_salary_units', $units array )

In this article

Allows filtering of how salary periods sent with a job map to Google’s salary units. Salary is only included in the markup when its period matches one of these.

Parameters

  • $units (array) Lower case salary periods and their Google unit, for example 'annum' => 'YEAR' and 'day' => 'DAY'. Google’s units are HOUR, DAY, WEEK, MONTH and YEAR.

Example

// map a salary period of "pa" to a yearly salary.
add_filter( 'jobrelay_wpcon_job_schema_salary_units', function( $units ) {
	$units['pa'] = 'YEAR';
	return $units;
} );

All docs

Can’t find what you need?

Our integrations team set up every JobRelay site, so they know it inside out. Get in touch and we’ll help.