apply_filters( 'jobrelay_wpcon_job_schema', $schema array, $post_id int, $job_data array )
In this article
Allows filtering of the Google for Jobs (JobPosting) markup for a job before it is output. Return an empty array to output no markup for that job, and the job shows a red X in the admin.
Parameters
$schema(array) The JobPosting schema as an array, which is output as JSON-LD.$post_id(int) The post ID of the job.$job_data(array) The job data sent to the site by JobRelay.
Example
// use a custom field for the hiring organisation name.
add_filter( 'jobrelay_wpcon_job_schema', function( $schema, $post_id, $job_data ) {
$schema['hiringOrganization']['name'] = get_post_meta( $post_id, '_company_name', true );
return $schema;
}, 10, 3 );