Limit characters for vendor profile

I want to limit the number of characters for a vendor profile.

What do you mean? What field do you want to restrict? Username, Name, Description or a custom attribute?

I can help you with a snippet if you tell me what field you wanna limit

Good day. Here is a code snippet for changing the maximum length in the description field. It will work on the vendor profile edit page. If you need to fix another field, please change “description” to another one: first_name, last_name, display_name.

	function( $fields ) {
		$fields['description']['max_length']   = 150;

		return $fields;

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