Skip to content

Instantly share code, notes, and snippets.

Created February 18, 2014 12:22
What would you like to do?
Change Whistles WordPress Plugin Post Type Labels
* 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