Last active
August 29, 2015 14:10
-
-
Save chriswallace/411debd4c7d27a592072 to your computer and use it in GitHub Desktop.
Modify the slug for the person post type in the Church Theme Content plugin.
This file contains hidden or 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
/** | |
* Modify the post type slug for the Person post type. | |
* ex: http://mychurch.org/people/ ~> http://mychurch.org/staff/ | |
*/ | |
function od_change_slug( $args ){ | |
$args['rewrite']['slug'] = 'staff'; // New slug is 'staff' | |
return $args; | |
} | |
add_filter( 'ctc_post_type_person_args' , 'od_change_slug' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment