Last active
August 29, 2015 14:13
-
-
Save Dinamiko/a4ce8d09c1ffe654ea81 to your computer and use it in GitHub Desktop.
This example changes the default slug doc to document
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
function custom_docu_doc_post_type_args( $docu_args ) { | |
$docu_args['rewrite'] = array('slug' => 'document'); | |
return $docu_args; | |
} | |
add_filter( 'docu_doc_post_type_args', 'custom_docu_doc_post_type_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment