jobrelay_wpcon_job_schema_closing_date_keys

apply_filters( 'jobrelay_wpcon_job_schema_closing_date_keys', $keys array )

Allows filtering of the job data keys checked for a job’s closing date. The first key with a value is used for the markup’s validThrough date, and jobs past that date get no markup.

In this article

Parameters

  • $keys (array) The job data keys to check, in order. Defaults to expiry_date, date_end and end_date.

Example

// also check a custom closing date field.
add_filter( 'jobrelay_wpcon_job_schema_closing_date_keys', function( $keys ) {
	$keys[] = 'custom_field_1';
	return $keys;
} );

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.