If you mean to change opening hours position on edit listing page then please try this PHP snippet
add_filter(
'hivepress/v1/forms/listing_update',
function( $form ) {
if ( isset( $form['fields']['opening_hours'] ) ) {
$form['fields']['opening_hours']['_order'] = '199';
}
return $form;
},
1000
);
If you mean to change opening hours position on listing page (move it from sidebar to above listing description) then please try this PHP snippet
add_filter(
'hivepress/v1/templates/listing_view_page/blocks',
function( $blocks, $template ) {
$listing = $template->get_context( 'listing' );
if ( $listing && hivepress()->get_version( 'opening_hours' ) ) {
$blocks = hivepress()->helper->merge_trees(
[ 'blocks' => $blocks ],
[
'blocks' => [
'page_content' => [
'blocks' => [
'listing_opening_hours' => [
'type' => 'opening_hours',
'model' => 'listing',
'_order' => 59,
],
],
],
'page_sidebar' => [
'blocks' => [
'listing_opening_hours' => [
'type' => 'content',
],
],
],
],
]
)['blocks'];
}
return $blocks;
},
1000,
2
);