regardless, let’s say you want to change what is referred to as “posts” into “Products”. (you can take the code below and change it to fit whatever it is you’re changing from and to)
function custom_detail_post_labels() {
global $wp_post_types;
$labels = &$wp_post_types['post']->labels;
$labels->name = 'Products';
$labels->singular_name = 'Product';
$labels->add_new = 'Add Product';
$labels->add_new_item = 'Add Product';
$labels->edit_item = 'Edit Products';
$labels->new_item = 'Product';
$labels->view_item = 'View Product';
$labels->search_items = 'Search Products';
$labels->not_found = 'No Products found';
$labels->not_found_in_trash = 'No Products found in Trash';
}
add_action( 'init', 'custom_detail_post_labels' );
Hopefully that answers your question for you. If so, please mark this topic as Resolved. Thanks!