Created
February 18, 2014 12:22
-
-
Save wpmark/9069976 to your computer and use it in GitHub Desktop.
Change Whistles WordPress Plugin Post Type Labels
This file contains 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
<?php | |
/*************************************************************** | |
* Function pxlcore_whistles_post_labels() | |
* Changes the post labels for the Whistles post type. | |
***************************************************************/ | |
function pxlcore_whistles_post_labels( $labels ) { | |
$labels->name = 'Snippets'; | |
$labels->singular_name = 'Snippet'; | |
$labels->menu_name = 'Snippets'; | |
$labels->admin_bar_name = 'Snippet'; | |
$labels->add_new = 'Add New'; | |
$labels->add_new_item = 'Add New Snippet'; | |
$labels->edit_item = 'Edit Snippet'; | |
$labels->new_item = 'New Snippet'; | |
$labels->view_item = 'View Snippet'; | |
$labels->search_items = 'Search Snippets'; | |
$labels->not_found = 'No snippets found'; | |
$labels->not_found_in_trash = 'No snippets found in trash'; | |
$labels->all_items = 'Snippets'; | |
return $labels; | |
} | |
add_filter( 'post_type_labels_whistle', 'pxlcore_whistles_post_labels' ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment