jobrelay_wpcon_is_job_schema

apply_filters( 'jobrelay_wpcon_is_job_schema_remote', $remote bool, $job_data array )

In this article

Allows filtering of whether a job is treated as fully remote in the Google for Jobs markup. Remote jobs are marked as TELECOMMUTE with the country applicants must be in. By default a job is remote when its working arrangement is “Remote” or Workable sends a telecommuting value.

Parameters

  • $remote (bool) true if the job is fully remote and false if it is not.
  • $job_data (array) The job data sent to the site by JobRelay.

Example

// treat jobs with remote in the location as remote.
add_filter( 'jobrelay_wpcon_is_job_schema_remote', function( $remote, $job_data ) {
	if ( ! empty( $job_data['job_location'] ) && false !== stripos( $job_data['job_location'], 'remote' ) ) {
		return true;
	}
	return $remote;
}, 10, 2 );

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.