Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 28, 2022 15:05
Embed
What would you like to do?
Change the vendor position (order) on the single listing page #hivepress #listings
<?php
add_filter(
'hivepress/v1/templates/listing_view_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_vendor' => [
'_order' => 123,
],
],
]
);
},
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment