Developer hooks
Hook name: propertyhive_digital_display_query_args
Hook type: Filter
Description: Customise the query args passed to the property WP_Query.
Example usage:
add_filter( 'propertyhive_digital_display_query_args', 'price_query', 10, 2 );
function price_query( $args, $digitaldisplay )
{
if ($digitaldisplay == 0) // Only apply to display with ID '0'
{
// only show properties more than or equal to £600,000
$args['meta_query'][] = array(
'key' => '_price_actual',
'value' => 600000,
'compare' => '>='
);
}
return $args;
}