Hello pabzjab,
You can put the following code in the function.php of the theme:
function modify_affiliates_slug() {
// Arguments array with the new slug ‘reviews’
$args = array(
‘label’ => __(‘Reviews’),
‘public’ => true,
‘has_archive’ => true,
‘rewrite’ => array(‘slug’ => ‘reviews’),
‘supports’ => array(‘title’, ‘editor’, ‘thumbnail’, ‘excerpt’, ‘comments’),
// Add other arguments as needed
);
// Registering the custom post type with the new slug
register_post_type(‘affiliates’, $args);
}
add_action(‘init’, ‘modify_affiliates_slug’, 20);
Then you should go to Dashboard > Settings > Permalinks and save the permalinks
There is a chance that the reviews you already have can be seen because the slug of the post type changes, if this happens you can inform us and we will look into it
Thanks,