Use register_post_type() to modify an existing post type
function wp1482371_custom_post_type_args( $args, $post_type ) {
if ( $post_type == "animal-species" ) {
$args['rewrite'] = array(
'slug' => 'animal'
);
}
return $args;
}
add_filter( 'register_post_type_args', 'wp1482371_custom_post_type_args', 20, 2 );code type:
Taken from:
https://wordpress.stackexchange.com/questions/65075/use-register-post-type-to-modify-an-existing-post-type
