Skip to content

Instantly share code, notes, and snippets.

@hivepress
Created April 27, 2022 10:16
Show Gist options
  • Save hivepress/e8dab6350a6f075f771334c3256b563c to your computer and use it in GitHub Desktop.
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);
@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