Remove 'Date' as a sort by option

How do I go about removing ‘Date’ as a sort by option on the listings page?

Please try this PHP snippet

add_filter(
	'hivepress/v1/forms/listing_sort',
	function( $form_args, $form ) {
		unset($form_args['fields']['_sort']['options']['']);
		
		return $form_args;
	},
	1000,
	2
);

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.