Created
February 6, 2024 18:13
-
-
Save NorthTexasCreative/75f7a4ff08ccef26e84ace5ac72c62bd to your computer and use it in GitHub Desktop.
Change Post Labels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function cp_change_post_object() { | |
| $get_post_type = get_post_type_object('post'); | |
| $labels = $get_post_type->labels; | |
| $labels->name = 'Newsroom'; | |
| $labels->singular_name = 'Newsroom'; | |
| $labels->add_new = 'Add News'; | |
| $labels->add_new_item = 'Add News'; | |
| $labels->edit_item = 'Edit News'; | |
| $labels->new_item = 'News'; | |
| $labels->view_item = 'View News'; | |
| $labels->search_items = 'Search News'; | |
| $labels->not_found = 'No News found'; | |
| $labels->not_found_in_trash = 'No News found in Trash'; | |
| $labels->all_items = 'All News'; | |
| $labels->menu_name = 'Newsroom'; | |
| $labels->name_admin_bar = 'News'; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment