Skip to content

Instantly share code, notes, and snippets.

@sproutventure
Created June 13, 2010 20:26
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 sproutventure/436976 to your computer and use it in GitHub Desktop.
Save sproutventure/436976 to your computer and use it in GitHub Desktop.
if ( ! $this->args['labels'] ) {
$default_labels = array (
'name' => _x(ucwords($post_type)),
'singular_name' => _x($post_type),
'add_new' => _x('Add New'),
'add_new_item' => sprintf(__('Add New %s'), $post_type),
'edit_item' => sprintf(__('Edit %s'), $post_type),
'new_item' => sprintf(__('New %s'), $post_type),
'view_item' => sprintf(__('View %s'), $post_type),
'search_items' => sprintf(__('Search New %s'), ucwords($post_type)),
'not_found' => sprintf(__('No %s found'), ucwords($post_type)),
'not_found_in_trash' => sprintf(__('No %s found in trash'), ucwords($post_type)),
'parent_item_colon' => ''
);
$this->args['labels'] = $default_labels;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment