Created
April 27, 2022 10:16
-
-
Save hivepress/e8dab6350a6f075f771334c3256b563c to your computer and use it in GitHub Desktop.
Change the Add Listing page URL slug (requires refreshing permalinks) #hivepress #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/routes', function($routes) { | |
$routes['listing_submit_page']['path']='/custom-slug-here'; | |
return $routes; | |
}, 1000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!