This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function hide_update_noticee_to_all_but_admin_users() | |
| { | |
| if (!current_user_can('update_core')) { | |
| remove_all_actions( 'admin_notices' ); | |
| } | |
| } | |
| add_action( 'admin_head', 'hide_update_noticee_to_all_but_admin_users', 1 ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| This simple snippet willy disable plugin per site basis. | |
| Replace 2,3,4 with acutal website ID(s) for those you want to disable this plugin | |
| This snippet can also be used to disable any network activated plugin. Only thing you have to do is copy the folder and file name of plugin e.g akismet/akismet.php | |
| */ | |
| add_filter('site_option_active_sitewide_plugins', 'wpmu_modify_sitewide_plugins'); | |
| function wpmu_modify_sitewide_plugins($value) { | |
| global $current_blog; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if( !function_exists('wpmu_hide_itmes') ): | |
| function wpmu_hide_itmes($buttons) | |
| { | |
| //do not remoe any button if its super admin or pro users | |
| if(current_user_can('pro') or is_super_admin() ) return $buttons; | |
| //Remove the text color selector | |
| $remove = array( 'msp_shortcodes_button', 'wsalestoolbox_tc_button', 'icon' ); |
NewerOlder