We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4161f38 commit e1b04daCopy full SHA for e1b04da
Core/Schema/Nominations.php
@@ -134,9 +134,13 @@ public function register_post_type() {
134
register_post_type( $this->post_type, $args );
135
136
// We must 'show_in_menu' but we also want to remove the 'Nominations' item from the admin menu.
137
- add_action( 'admin_menu', function() {
138
- remove_submenu_page( PF_MENU_SLUG, 'edit.php?post_type=nomination' );
139
- }, 999 );
+ add_action(
+ 'admin_menu',
+ function() {
140
+ remove_submenu_page( PF_MENU_SLUG, 'edit.php?post_type=nomination' );
141
+ },
142
+ 999
143
+ );
144
}
145
146
/**
0 commit comments