exists() && ! is_super_admin( $user->get( 'ID' ) ) ) { $wpml_capabilities = array_keys( wpml_get_capabilities() ); foreach( $wpml_capabilities as $capability ) { $user->remove_cap( $capability ); } } return true; } /** * @return string */ public function get_command_id() { return 'wpml-upgrade-fix-non-admin-with-admin-cap'; } /** * @return bool */ public function run_ajax() { return false; } /** * @return bool */ public function run_frontend() { return false; } /** * @return null */ public function get_results() { return $this->results; } }