Data.php
724 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?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 = [];
}