PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.3
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.3
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
content-control / classes / QueryMonitor / Data.php

Data.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.6.3, at classes/QueryMonitor/Data.php

40 lines 724 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Abstract data collector for structured data.
4 *
5 * @package ContentControl
6 */
7
8 namespace ContentControl\QueryMonitor;
9
10 use QM_Data;
11
12 defined( 'ABSPATH' ) || exit;
13
14 /**
15 * Class data collector for structured data.
16 */
17 class Data extends QM_Data {
18
19 /**
20 * Main query restriction.
21 *
22 * @var \ContentControl\Models\Restriction|null
23 */
24 public $main_query_restriction = null;
25
26 /**
27 * Main query post restrictions.
28 *
29 * @var array<array{restriction: \ContentControl\Models\Restriction, posts: int[]}>
30 */
31 public $restrict_main_query_posts = [];
32
33 /**
34 * List of posts checked for restrictions and their restrictions.
35 *
36 * @var array<array<string,mixed>>
37 */
38 public $user_can_view_content = [];
39 }
40