Skip to content

Remove 'blog' from CPT taxonomies #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,12 @@ GitHub.sublime-settings

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
themes/osi/.vscode/settings.json

# Local History for Visual Studio Code
.history/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ public function get_args() {

return wp_parse_args(
[
'rewrite' => array( 'slug' => 'license-category' ),
'rewrite' => array(
'slug' => 'license-category',
'with_front' => false,
),
],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => true,
'rewrite' => array( 'slug' => 'publication' ),
'rewrite' => array(
'slug' => 'publication',
'with_front' => false,
),

],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => false,
'rewrite' => array( 'slug' => 'seat-type' ),
'rewrite' => array(
'slug' => 'seat-type',
'with_front' => false,
),
],
parent::get_args()
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,13 @@ public function get_post_types() {
* @return array
*/
public function get_args() {
return wp_parse_args(
[

return wp_parse_args(
array(
'hierarchical' => false,
'rewrite' => array( 'slug' => 'status' ),
],
),
parent::get_args()
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ public function get_args() {
return wp_parse_args(
[
'hierarchical' => false,
'rewrite' => array( 'slug' => 'steward' ),
'rewrite' => array(
'slug' => 'steward',
'with_front' => false,
),
],
parent::get_args()
);
Expand Down
Loading