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/613dcbbee4fd228899e0 to your computer and use it in GitHub Desktop.
Save Dinamiko/613dcbbee4fd228899e0 to your computer and use it in GitHub Desktop.
changes default rewtrite slug to /documents/
function custom_docu_doc_category_args( $category_args ) {
$category_args['rewrite'] = array('slug' => 'documents' );
return $category_args;
}
add_filter( 'docu_doc_category_args', 'custom_docu_doc_category_args' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment