Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function change_taxonomies_slug( $args, $taxonomy ) {
- if ( 'accommodations' === $taxonomy ) {
- $args['rewrite']['slug'] = 'yourownslug'; // Add your own slug there
- }
- return $args;
- }
- add_filter( 'register_taxonomy_args', 'change_taxonomies_slug', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement