Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 27, 2022 10:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hivepress/e8dab6350a6f075f771334c3256b563c to your computer and use it in GitHub Desktop.
Change the Add Listing page URL slug (requires refreshing permalinks) #hivepress #listings
<?php
add_filter('hivepress/v1/routes', function($routes) {
$routes['listing_submit_page']['path']='/custom-slug-here';
return $routes;
}, 1000);
@GizzyZexx
Copy link

No he logrado hacer que funcione :c

@hivepress
Copy link
Author

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.

@obey24com
Copy link

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