Last active
May 9, 2022 07:01
-
-
Save hivepress/d9f3199761c11f9d83e0a84b9ddb2a87 to your computer and use it in GitHub Desktop.
Change the listing 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/post_types', | |
function( $args ) { | |
$args['listing']['rewrite']['slug'] = 'custom-slug-here'; | |
return $args; | |
}, | |
100 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment