Change the word "Posts" to "Articles", "News" or anything else throughout the admin menu, screens and buttons.
add_filter( 'post_type_labels_post', function ( stdClass $labels ): stdClass {
$single = 'Article';
$plural = 'Articles';
$labels->name = $plural;
$labels->singular_name = $single;
$labels->add_new_item = "Add New $single";
$labels->edit_item = "Edit $single";
$labels->new_item = "New $single";
$labels->view_item = "View $single";
$labels->view_items = "View $plural";
$labels->search_items = "Search $plural";
$labels->not_found = "No " . strtolower( $plural ) . " found.";
$labels->not_found_in_trash = "No " . strtolower( $plural ) . " found in Trash.";
$labels->all_items = "All $plural";
$labels->archives = "$single Archives";
$labels->menu_name = $plural;
$labels->name_admin_bar = $single;
$labels->item_published = "$single published.";
$labels->item_updated = "$single updated.";
return $labels;
} );
Always add PHP to a staging site first, or have FTP or file manager access ready, so you can undo it if something goes wrong.
If your team calls them articles, news or stories, seeing “Posts” everywhere in the admin is a small but constant mismatch. This snippet renames them.
WordPress builds every label for a post type from one set of names. The post_type_labels_post filter changes those names for the built-in Post type, so the menu, screen titles, buttons and messages all update together.
post and your content stay the same.Check the admin menu: “Posts” should now read “Articles”, and Add New should say “Add New Article”.