Skip to content

Instantly share code, notes, and snippets.

@hivepress
Last active May 17, 2022 18:56
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/1d194c3aaa5f2ff354235c051efd2cd5 to your computer and use it in GitHub Desktop.
Save hivepress/1d194c3aaa5f2ff354235c051efd2cd5 to your computer and use it in GitHub Desktop.
Display the package selection page first in the listing submission process (note that this breaks category-specific packages) #hivepress #paid-listings
<?php
add_filter(
'hivepress/v1/menus/listing_submit',
function( $menu ) {
if(isset($menu['items']['listing_submit_package'])){
$menu['items']['listing_submit_package']['_order']=2;
}
return $menu;
},
1000
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment