Plugin Directory

Changeset 3356899


Ignore:
Timestamp:
09/05/2025 08:58:39 PM (3 months ago)
Author:
boonebgorges
Message:

Fixing a bug

Location:
pressforward
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pressforward/tags/5.9.3/Core/Schema/Nominations.php

    r3356897 r3356899  
    133133
    134134        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 );
    135140    }
    136141
  • pressforward/trunk/Core/Schema/Nominations.php

    r3356897 r3356899  
    133133
    134134        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 );
    135140    }
    136141
Note: See TracChangeset for help on using the changeset viewer.