public function wp_head() { // Figure out whether the user should be ignored or not. $ignore = false; $settings = $this->get_settings(); $user = wp_get_current_user(); if ($user->user_level >= $settings['ignore_user_level']) { $ignore = true; } // Render the snippet. Analytics::initialize($this->get_settings(), $ignore); }