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
add_filter( 'register_post_type_args', 'je_change_post_type_rewrite_slug', 10, 2 ); | |
/** | |
* Change post type rewirte | |
* Where: | |
* - apartments - is a post type slug. Replace is with your actual slug. | |
* - %locations% - is a placeholder for taxonomy term in URL. | |
* | |
* @param array $args | |
* @param string $post_type_name |