to class * * @param array $config Array of configuration. */ protected function config( $config = [] ) { // Bail early if no config. if ( empty( $config ) ) { return; } foreach ( $config as $key => $value ) { $this->$key = $value; } } /** * Remove 'view_query_monitor' capability for current page. * * @param bool|array $user_caps Concerned user's capabilities. * @return bool|array Concerned user's capabilities. */ public function filter_user_has_cap( array $user_caps ) { $user_caps['view_query_monitor'] = false; return $user_caps; } }