Created
April 27, 2022 10:08
-
-
Save hivepress/a1f3df3bce636c317fb6bd2c5643f35d to your computer and use it in GitHub Desktop.
Add custom content to the listing search page sidebar #hivepress #templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'hivepress/v1/templates/listings_view_page', | |
function( $template ) { | |
return hivepress()->helper->merge_trees( | |
$template, | |
[ | |
'blocks' => [ | |
'page_sidebar' => [ | |
'blocks' => [ | |
'custom_name_here' => [ | |
'type' => 'content', | |
'content' => 'custom text here', | |
'_order' => 123, | |
], | |
], | |
], | |
], | |
] | |
); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment