public function filter_user_has_cap( array $user_caps, array $caps, array $args ) {
		$trace  = new QM_Backtrace();
		$result = true;

		foreach ( $caps as $cap ) {
			if ( empty( $user_caps[ $cap ] ) ) {
				$result = false;
				break;
			}
		}

		$this->data['caps'][] = array(
			'args'   => $args,
			'trace'  => $trace,
			'result' => $result,
		);

		return $user_caps;
	}
public function filter_user_has_cap( array $user_caps, array $caps, array $args ) {
		$trace  = new QM_Backtrace();
		$result = true;

		foreach ( $caps as $cap ) {
			if ( empty( $user_caps[ $cap ] ) ) {
				$result = false;
				break;
			}
		}

		$this->data['caps'][] = array(
			'args'   => $args,
			'trace'  => $trace,
			'result' => $result,
		);

		return $user_caps;
	}
public function filter_user_has_cap ( array $ user_caps , array $ caps , array $ args ) { $ trace = new QM_Backtrace ( ) ; $ result = true ; foreach ( $ caps as $ cap ) { if ( empty ( $ user_caps [ $ cap ] ) ) { $ result = false ; break ; } } $ this -> data [ 'caps' ] [ ] = array ( 'args' => $ args , 'trace' => $ trace , 'result' => $ result , ) ; return $ user_caps ; }
Logs user capability checks.

This does not get called for Super Admins. See filter_map_meta_cap() below.

@param bool[]   $user_caps     Concerned user's capabilities.
@param string[] $required_caps Required primitive capabilities for the requested capability.
@param array    $args {
Arguments that accompany the requested capability check.

@type string    $0 Requested capability.
@type int       $1 Concerned user ID.
@type mixed  ...$2 Optional second and further parameters.
}
@return bool[] Concerned user's capabilities.
Logs user capability checks .