SHARE
TWEET

Untitled

a guest Apr 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top