Skip to content

Commit 0306496

Browse files
authored
Merge pull request #17 from OpenSourceOrg/add/25/change-cpt-name
Add/25/change cpt name
2 parents e31603b + 936e0dc commit 0306496

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

plugins/osi-features/inc/classes/post-types/class-post-type-press-mentions.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Post_Type_Press_Mentions extends Base {
2424
*
2525
* @var string
2626
*/
27-
const LABEL = 'In The News';
27+
const LABEL = 'Press mentions';
2828

2929
/**
3030
* To get list of labels for post type.
@@ -34,17 +34,17 @@ class Post_Type_Press_Mentions extends Base {
3434
public function get_labels() {
3535

3636
return [
37-
'name' => __( 'In The News', 'osi-features' ),
38-
'singular_name' => __( 'Articles', 'osi-features' ),
39-
'all_items' => __( 'Articles', 'osi-features' ),
37+
'name' => __( 'Press mentions', 'osi-features' ),
38+
'singular_name' => __( 'Press mentions', 'osi-features' ),
39+
'all_items' => __( 'Press mentions', 'osi-features' ),
4040
'add_new' => __( 'Add New', 'osi-features' ),
41-
'add_new_item' => __( 'Add New Article', 'osi-features' ),
42-
'edit_item' => __( 'Edit Article', 'osi-features' ),
43-
'new_item' => __( 'New Article', 'osi-features' ),
44-
'view_item' => __( 'View Article', 'osi-features' ),
45-
'search_items' => __( 'Search Articles', 'osi-features' ),
46-
'not_found' => __( 'No Articles found', 'osi-features' ),
47-
'not_found_in_trash' => __( 'No Articles found in Trash', 'osi-features' ),
41+
'add_new_item' => __( 'Add New Press mention', 'osi-features' ),
42+
'edit_item' => __( 'Edit Press mention', 'osi-features' ),
43+
'new_item' => __( 'New Press mention', 'osi-features' ),
44+
'view_item' => __( 'View Press mention', 'osi-features' ),
45+
'search_items' => __( 'Search Press mentions', 'osi-features' ),
46+
'not_found' => __( 'No Press mentions found', 'osi-features' ),
47+
'not_found_in_trash' => __( 'No Press mentions found in Trash', 'osi-features' ),
4848
];
4949

5050
}
@@ -62,7 +62,7 @@ public function get_args() {
6262
'has_archive' => true,
6363
'menu_position' => 6,
6464
'supports' => [ 'title', 'author', 'excerpt' ],
65-
'rewrite' => [ 'slug' => 'in-the-news' ]
65+
'rewrite' => [ 'slug' => 'press-mentions' ]
6666
];
6767

6868
}

0 commit comments

Comments
 (0)