Skip to content

Instantly share code, notes, and snippets.

@hivepress
Last active April 26, 2022 17:47
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/09e87aa2e9c521d4124f628fb018a3ff to your computer and use it in GitHub Desktop.
Save hivepress/09e87aa2e9c521d4124f628fb018a3ff to your computer and use it in GitHub Desktop.
Change the columns number on the listing category selection page #hivepress #listing-categories
<?php
add_filter(
'hivepress/v1/templates/listing_submit_category_page',
function( $template ) {
return hivepress()->helper->merge_trees(
$template,
[
'blocks' => [
'listing_categories' => [
'columns' => 3,
],
],
]
);
},
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment