Please see the attach picture showing a booking block. I would like to add description for the Data and Time, for example
Data
Pacific Time Zone
Time
Pacific Time Zone
How to use snippets to add? Thank you
Please see the attach picture showing a booking block. I would like to add description for the Data and Time, for example
Data
Pacific Time Zone
Time
Pacific Time Zone
How to use snippets to add? Thank you
Please try this PHP snippet
add_filter(
'hivepress/v1/forms/booking_make',
function( $form ) {
if(isset($form['fields']['_dates'])){
$form['fields']['_dates']['description'] = 'custom text here';
}
if(isset($form['fields']['_time'])){
$form['fields']['_time']['description'] = 'custom text here';
}
return $form;
},
1000
);
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.