What is the the difference between this 2 codes. I cant find the difference to acheive my goal:
add_filter(
'hivepress/v1/templates/listings_view_page',
function( $template ) {
hivepress()->template->fetch_block( $template, 'listing_map' );
return $template;
},
1000
);
add_filter(
'hivepress/v1/templates/listings_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_map' => [
'type' => 'content',
],
],
]
);
}
);