Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 26, 2022 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hivepress/0df9aa4479af5c65294c655c424f1cd1 to your computer and use it in GitHub Desktop.
Save hivepress/0df9aa4479af5c65294c655c424f1cd1 to your computer and use it in GitHub Desktop.
Change the listing description position (order) on a page #hivepress #listings
<?php
add_filter(
'hivepress/v1/templates/listing_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_description' => [
'_order' => 123,
],
],
]
);
},
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment