Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Add this to your child theme's function.php file.
- // Make sure you flush the rewrite rules.
- // On wp cli you can 'wp rewrite flush'
- // Or goto WordPress Admin > Settings > Permalink and save the settings which will flush the rules.
- add_filter('business_directory_post_type_args', function($args){
- $args['rewrite'] = [
- 'slug' => '/business-location',
- ];
- return $args;
- }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement