PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
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 / Controllers / Frontend / Restrictions.php

Restrictions.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.6.1, at classes/Controllers/Frontend/Restrictions.php

40 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Frontend restrictions setup.
4 *
5 * @copyright (c) 2023, Code Atlantic LLC.
6 * @package ContentControl
7 */
8
9 namespace ContentControl\Controllers\Frontend;
10
11 use ContentControl\Base\Controller;
12 use ContentControl\Controllers\Frontend\Restrictions\MainQuery;
13 use ContentControl\Controllers\Frontend\Restrictions\QueryPosts;
14 use ContentControl\Controllers\Frontend\Restrictions\PostContent;
15 use ContentControl\Controllers\Frontend\Restrictions\QueryTerms;
16 use ContentControl\Controllers\Frontend\Restrictions\RestAPI;
17
18 defined( 'ABSPATH' ) || exit;
19
20 /**
21 * Class for handling global restrictions.
22 *
23 * @package ContentControl
24 */
25 class Restrictions extends Controller {
26
27 /**
28 * Initiate functionality.
29 */
30 public function init() {
31 $this->container->register_controllers( [
32 'Frontend\Restrictions\MainQuery' => new MainQuery( $this->container ),
33 'Frontend\Restrictions\QueryPosts' => new QueryPosts( $this->container ),
34 'Frontend\Restrictions\QueryTerms' => new QueryTerms( $this->container ),
35 'Frontend\Restrictions\PostContent' => new PostContent( $this->container ),
36 'Frontend\Restrictions\RestAPI' => new RestAPI( $this->container ),
37 ] );
38 }
39 }
40