Skip to content

Commit 407544a

Browse files
Add rewrite slug to custom post types
1 parent af9a971 commit 407544a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

plugins/osi-features/inc/classes/post-types/class-base.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ public function get_args() {
7979
'has_archive' => true,
8080
'menu_position' => 6,
8181
'supports' => [ 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments' ],
82+
'rewrite' => array(
83+
'slug' => $this->get_slug(),
84+
'with_front' => false,
85+
)
8286
];
8387

8488
}

0 commit comments

Comments
 (0)