Changeset 6663
- Timestamp:
- 02/16/2018 05:37:43 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php
r6617 r6663 86 86 */ 87 87 function wcorg_disable_network_activated_plugins_on_sites( $plugins ) { 88 89 88 /* 90 89 * central.wordcamp.org, plan.wordcamp.org … … 99 98 unset( $plugins['wc-canonical-years/wc-canonical-years.php'] ); 100 99 unset( $plugins['wordcamp-organizer-nags/wordcamp-organizer-nags.php'] ); 101 unset( $plugins['camptix/camptix.php'] );102 100 unset( $plugins['wc-post-types/wc-post-types.php'] ); 103 101 } … … 107 105 */ 108 106 if ( 63 === get_current_blog_id() ) { 107 unset( $plugins['camptix/camptix.php'] ); 109 108 unset( $plugins['wordcamp-payments/bootstrap.php'] ); 110 109 unset( $plugins['wordcamp-payments-network/bootstrap.php'] ); … … 114 113 } 115 114 add_filter( 'site_option_active_sitewide_plugins', 'wcorg_disable_network_activated_plugins_on_sites' ); 115 116 /** 117 * Remove menu items on certain sites. 118 * 119 * This works together with `wcorg_disable_network_activated_plugins_on_sites()`. There are some plugins that we 120 * need running on sites so we can use some of their internals, but don't use the main features, and don't want 121 * them cluttering the UI. 122 */ 123 function wcorg_remove_admin_menu_pages_on_sites() { 124 if ( get_current_blog_id() === BLOG_ID_CURRENT_SITE ) { 125 remove_menu_page( 'edit.php?post_type=tix_ticket' ); 126 } 127 } 128 add_action( 'admin_menu', 'wcorg_remove_admin_menu_pages_on_sites', 11 ); 116 129 117 130 /*
Note: See TracChangeset
for help on using the changeset viewer.