Limit amount of characters for titles

Hi there!

Is there a way to limit the amount of characters for the titles of the different listings?

Thank you

Please try this PHP snippet but please note that it will limit the number of characters for title for all listings. It requires advanced customization if you want to add this restriction for specific listings

add_filter(
	'hivepress/v1/models/listing',
	function( $model ) {
		$model['fields']['title']['max_length']   = 123;

		return $model;
	}
);

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