I have added the following code to my child theme’s functions.php file, but it doesn’t work:
add_filter('hivepress/v1/templates/listing_view_page', function($template){
return hivepress()->helper->merge_trees($template,[
'blocks' => [
'page_content' => [
'blocks' => [
'listing_description_calc' => [
'type' => 'content',
'content' => include 'listing-calcs.php',
'_order' => 70,
]
]
]
]
]);
});
The snippet above returns plain text and html fine, but I would like to include another php file.
Is this possible?