Last active
May 17, 2022 18:56
-
-
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
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/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