Created
April 9, 2019 12:07
-
-
Save matthijs166/410f26433eda6195b9a05d7fd928d930 to your computer and use it in GitHub Desktop.
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', 'portfolio_args', 10, 2 ); | |
function portfolio_args( $args, $post_type ) { | |
if ( 'la_portfolio' === $post_type ) { | |
$args['rewrite']['slug'] = 'collectie'; | |
$args['label'] = 'Collecties'; | |
$args['name'] = 'Collecties'; | |
$args['singular_name'] = 'Collectie'; | |
} | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment