final public function require_capability($capability, $user = null) {
        if (!is_int($user)) {
            $user = null;
        }
        $this->requiredcapabilities[] = array(
            'capability' => $capability,
            'user' => $user
        );
    }
final public function require_capability($capability, $user = null) {
        if (!is_int($user)) {
            $user = null;
        }
        $this->requiredcapabilities[] = array(
            'capability' => $capability,
            'user' => $user
        );
    }
final public function require_capability ( $ capability , $ user = null ) { if ( ! is_int ( $ user ) ) { $ user = null ; } $ this -> requiredcapabilities [ ] = array ( 'capability' => $ capability , 'user' => $ user ) ; }
Adds a required capability which all results will be checked against
@param string $capability
@param int|null $user
Adds a required capability which all results will be checked against