Last active
April 9, 2019 04:28
-
-
Save mrkdevelopment/89ebe0410f80ffa23f1ec8f49e79cab4 to your computer and use it in GitHub Desktop.
Business Directory Post Type Arg Filter
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 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); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment