Add description to Daily Prices field

Hi HivePress team,

Is there a snippet to add description to the “Daily Prices” field? I didn’t find any.

Thank you.

Hi,

Sure, please use this PHP snippet:

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

		return $form;
	},
	1000
);
1 Like

Hi, for me the snippet doesn’t work unfortunately - not sure if I’m doing anything wrong. Can you show me where exactly I should see the text?

Thankes :slight_smile:

Hi SophiavFT,

Just copy and paste the snippet in a snippet plugin (I use Code Snippets plugin) and change the text between the apostrophes (‘Add your custom text here’). Don’t delete the apostrophes!
Save changes and Activate. That’s it.

Hi Zipko, thanks for your answer. That’s what I did but it doesn’t seem to work unfortunately. :frowning:

Hi,

You need to add this PHP snippet using this doc How to add custom code snippets - HivePress Help Center. If you use a caching plugin, ensure that caching is disabled for logged-in users. You should see a description like in this screenshot Awesome Screenshot, on the Add Listing page. If this issue exists, please send temporary WP access to support@hivepress.io with details for reproducing this issue, and we’ll check it (please send only the link, without login and password). You can create a temporary access link using this plugin Temporary Login Without Password – WordPress plugin | WordPress.org.

I believe this will be useful to you.

thanks andrii, I just sent the temporary login to the mentioned e-mail address

Hi,

We checked this issue from our side, and it seems okay. Please check this screenshot - Awesome Screenshot

​I hope this is helpful to you.

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