How to add array [closed]
You don’t need array to do this. The following code will be worked. You have to just add other username also inside if condition with or operation. if (‘plugins.php’ === $pagenow ||’update-core.php’ === $pagenow ) { // wp_safe_redirect( home_url() ); // Now check the current user $user = wp_get_current_user(); if ( $user->user_login == ‘Remo’ || … Read more