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); |
Please try refreshing permalinks in Settings/Permalinks after you add this snippet, if you just place the code WordPress will still attempt to use the old URLs.
Thanks!
<?php
add_filter('hivepress/v1/routes', function($routes) {
$routes['request_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
No he logrado hacer que funcione :c