recpress_job_data_value_($data_type)
Filters the value of RecPress job data being returned. The dynamic part of the hook name ($data_type
) refers to the type of data being returned. Below is a complete list of the data types:
- location
- job_type
- job_sector
- job_working_arrangement
- job_salary
- published_date
- distance
Parameters
$value
(string) – the current value of this job data.$attrs
(array) – The current array of attributes passed to therecpress_get_job_data
function (see below for defaults).
Notes
The default attributes passed to the filter as $attrs
are as follows:
$defaults = [ 'title' => __( 'At a glance', 'recpress' ), 'show_location' => true, 'show_type' => true, 'show_sector' => true, 'show_working_arrangement' => true, 'show_salary' => true, 'show_published_date' => true, 'show_distance' => true, 'wrapper' => true, 'post_id' => $post->ID,];