Add a description line to the category field

Hi,
Is this possible? I’d like to add a short description under the category field by the ‘submit listing page’.
Does anyone have a code for this?
Thanks

Hi,

Please use this PHP snippet:

add_filter(
 'hivepress/v1/forms/listing_submit',
 function( $form ) {
 	if(isset($form['fields']['categories'])){
			$form['fields']['categories']['description'] = 'custom text here';
		}

  return $form;
 },
 1000
);

Please note that it can require further customization.

2 Likes

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