Codesnipp.it Social Code Sharing

Chris Olbekson

Change the name and labels of the dashboard post menu and edit screen

by Chris Olbekson on May 05, 2011

add_action( 'init', 'c3m_change_post_object_label' ); function c3m_change_post_object_label() { global $wp_post_types; $labels = &$wp_post_types['post']->labels; $labels->name = 'XXXXX'; $labels->singular_name = 'Add New XXXXX'; $labels->add_new = 'Add XXXX'; $labels->add_new_item = 'Add XXXX'; $labels->edit_item = 'Edit XXXX'; $labels->new_item = 'New XXXX'; $labels->view_item = 'View XXXX'; $labels->search_items = 'Search XXXX'; $labels->not_found = 'No Post XXXX'; $labels->not_found_in_trash = 'No XXXX found in Trash'; }

Can't see the comments? Please login first :)