public

  • Download Gist
labels for SD_Register_Post_Type
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
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;
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.