Skip to content

Commit

Permalink
Merge pull request #50 from wearerequired/fix/block-editor-labels
Browse files Browse the repository at this point in the history
Add post type labels used in the block editor
  • Loading branch information
markjaquith authored Aug 3, 2020
2 parents aa8193f + b921907 commit 89cbbf8
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions classes/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,20 +163,28 @@ protected function register_post_type() {
'create_posts' => $this->edit_cap( 'create_posts' ),
),
'labels' => array (
'name' => __( 'Help Documents', 'wp-help' ),
'singular_name' => __( 'Help Document', 'wp-help' ),
'add_new_item' => __( 'Add New Help Document', 'wp-help' ),
'edit_item' => __( 'Edit Help Document', 'wp-help' ),
'new_item' => __( 'New Help Document', 'wp-help' ),
'view_item' => __( 'View Help Document', 'wp-help' ),
'search_items' => __( 'Search Documents', 'wp-help' ),
'not_found' => __( 'No Help Documents Found', 'wp-help' ),
'not_found_in_trash' => __( 'No Help Documents found in Trash', 'wp-help' ),
'parent' => __( 'Parent Help Document', 'wp-help' ),
'add_new' => _x( 'Add New', 'i.e. Add new Help Document', 'wp-help' ),
'edit' => _x( 'Edit', 'i.e. Edit Help Document', 'wp-help' ),
'view' => _x( 'View', 'i.e. View Help Document', 'wp-help' ),
)
'name' => __( 'Help Documents', 'wp-help' ),
'singular_name' => __( 'Help Document', 'wp-help' ),
'add_new_item' => __( 'Add New Help Document', 'wp-help' ),
'edit_item' => __( 'Edit Help Document', 'wp-help' ),
'new_item' => __( 'New Help Document', 'wp-help' ),
'view_item' => __( 'View Help Document', 'wp-help' ),
'search_items' => __( 'Search Documents', 'wp-help' ),
'not_found' => __( 'No Help Documents Found', 'wp-help' ),
'not_found_in_trash' => __( 'No Help Documents found in Trash', 'wp-help' ),
'parent' => __( 'Parent Help Document', 'wp-help' ),
'add_new' => _x( 'Add New', 'i.e. Add new Help Document', 'wp-help' ),
'edit' => _x( 'Edit', 'i.e. Edit Help Document', 'wp-help' ),
'view' => _x( 'View', 'i.e. View Help Document', 'wp-help' ),
'filter_items_list' => __( 'Filter documents list', 'wp-help' ),
'items_list_navigation' => __( 'Documents list navigation', 'wp-help' ),
'items_list' => __( 'Documents list', 'wp-help' ),
'item_published' => __( 'Document published.', 'wp-help' ),
'item_published_privately' => __( 'Document published privately.', 'wp-help' ),
'item_reverted_to_draft' => __( 'Document reverted to draft.', 'wp-help' ),
'item_scheduled' => __( 'Document scheduled.', 'wp-help' ),
'item_updated' => __( 'Document updated.', 'wp-help' ),
),
)
);
}
Expand Down

0 comments on commit 89cbbf8

Please sign in to comment.