Limit character amount for vendor description

Hi!

Is there an option or a code snippet to limit the maximum amount of characters for the vendor description?

Thank you

Please try this PHP snippet

add_filter(
	'hivepress/v1/models/user',
	function( $model ) {
		if(current_user_can('edit_posts')){
			$model['fields']['description']['max_length']   = 123;
		}

		return $model;
	},
	1000
);

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