May 8, 2017Published by Radu G. on May 8, 2017Categories WordpressChange slug for an already registered post typefunction wpti_custom_post_type_args( $args, $post_type ) { if ( $post_type === 'my-registered-custom-post-type' ) { $args['rewrite'] = array( 'slug' => 'my-new-slug' ); } return $args; } Unfortuantely it […]