Skip to content

Instantly share code, notes, and snippets.

@Dinamiko
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dinamiko/a4ce8d09c1ffe654ea81 to your computer and use it in GitHub Desktop.
Save Dinamiko/a4ce8d09c1ffe654ea81 to your computer and use it in GitHub Desktop.
This example changes the default slug doc to document
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