We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c187a4 commit 60e5008Copy full SHA for 60e5008
src/Admin/Admin.php
@@ -27,6 +27,8 @@ public static function hooks(): void {
27
28
// Maybe remove ACF from admin.
29
add_filter( 'acf/settings/show_admin', [ self::class, 'maybe_show_acf' ] );
30
+
31
+ add_action( 'admin_init', [ self::class, 'maybe_hide_litespeed' ] );
32
}
33
34
/**
@@ -94,4 +96,12 @@ function a() {
94
96
public static function maybe_show_acf(): bool {
95
97
return 'production' !== wp_get_environment_type();
98
99
100
+ public static function maybe_hide_litespeed() {
101
+ if( is_multisite() ){
102
+ if( ! current_user_can('setup_network')){ // is not superadmin
103
+ remove_menu_page( 'litespeed' );
104
+ }
105
106
107
0 commit comments