Skip to content
Create a gist now

Instantly share code, notes, and snippets.

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
Something went wrong with that request. Please try again.