Limit the length of the ad title

hi, how can I limit the length of the ad title to 70 characters (S.E.O) friendly? Thanks for your help.

Please try this PHP snippet

add_filter(
	'hivepress/v1/models/listing/fields',
	function($fields, $model){
		$fields['title']['max_length'] = 70;
		return $fields;	
	},
	1000,
	2
);
2 Likes

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