Changeset 3356899
- Timestamp:
- 09/05/2025 08:58:39 PM (3 months ago)
- Location:
- pressforward
- Files:
-
- 2 edited
-
tags/5.9.3/Core/Schema/Nominations.php (modified) (1 diff)
-
trunk/Core/Schema/Nominations.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pressforward/tags/5.9.3/Core/Schema/Nominations.php
r3356897 r3356899 133 133 134 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 ); 135 140 } 136 141 -
pressforward/trunk/Core/Schema/Nominations.php
r3356897 r3356899 133 133 134 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 ); 135 140 } 136 141
Note: See TracChangeset
for help on using the changeset viewer.