Advertisement
Guest User

Untitled

a guest
Apr 18th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2. // Add this to your child theme's function.php file.
  3. // Make sure you flush the rewrite rules.
  4. // On wp cli you can 'wp rewrite flush'
  5. // Or goto WordPress Admin > Settings > Permalink and save the settings which will flush the rules.
  6. add_filter('business_directory_post_type_args', function($args){
  7. $args['rewrite'] = [
  8. 'slug' => '/business-location',
  9. ];
  10. return $args;
  11.  
  12. }, 100);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement