Explanatory text Placeholder in field tags

I would like to include in php snipets a code to be able to add in the tag field a placeholder as I add in the attributes of a category to put the following text “choose a tag from the list or add a new one to be located more easily”.

Please try this PHP snippet

add_filter(
	'hivepress/v1/models/listing/attributes',
	function( $attributes ) {
		if (isset($attributes['tags'])) {
			$attributes['tags']['edit_field']['description'] = 'Choose a tag from the list or add a new one to be located more easily';
		}

		return $attributes;
	}
);

Thank you ihor, you are very kind. Actually that’s fine but I would like that text to appear inside the tag field, not on top of the field.
Thank you.

Please try using the same snippet, but with the “placeholder” instead of the “description” parameter. The placeholder text may be cropped, though.