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)trueif the job is fully remote andfalseif 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 );