# content-control/2.6.2/classes/QueryMonitor/Data.php

Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks &amp; More, version 2.6.2. 40 lines.

- Page: https://pluginprobe.com/plugins/content-control/2.6.2/code/classes/QueryMonitor/Data.php
- Raw: https://pluginprobe.com/plugins/content-control/2.6.2/raw/classes/QueryMonitor/Data.php
- Modified: 2023-10-04T23:16:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/content-control/2.6.2/code/classes/QueryMonitor/Data.php#L10-L20`.

```php
<?php
/**
 * Abstract data collector for structured data.
 *
 * @package ContentControl
 */

namespace ContentControl\QueryMonitor;

use QM_Data;

defined( 'ABSPATH' ) || exit;

/**
 * Class data collector for structured data.
 */
class Data extends QM_Data {

	/**
	 * Main query restriction.
	 *
	 * @var \ContentControl\Models\Restriction|null
	 */
	public $main_query_restriction = null;

	/**
	 * Main query post restrictions.
	 *
	 * @var array<array{restriction: \ContentControl\Models\Restriction, posts: int[]}>
	 */
	public $restrict_main_query_posts = [];

	/**
	 * List of posts checked for restrictions and their restrictions.
	 *
	 * @var array<array<string,mixed>>
	 */
	public $user_can_view_content = [];
}

```
