Slug Change

First, install Child Theme from Theme bundle. Open functions.php file with WordPress Editor or AceIDE and Change the service URL slug file on autrics-child\functions.php folder and write the below code.

//For service slug

    add_filter( 'register_post_type_args', 'autrics_service_slug_register_post_type_args', 10, 2 );
    function autrics_service_slug_register_post_type_args( $args, $post_type ) {
    
       if ( 'ts_service' === $post_type ) {
          $args['rewrite']['slug'] = 'service'; //rename solutions
          $args['labels']['singular_name'] = 'Service';
       }
    
       return $args;
    }
What are your feelings
Updated on November 14, 2022