Skip to content

Instantly share code, notes, and snippets.

@wpmark
Created February 18, 2014 12:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wpmark/9069976 to your computer and use it in GitHub Desktop.
Save wpmark/9069976 to your computer and use it in GitHub Desktop.
Change Whistles WordPress Plugin Post Type Labels
<?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