PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.2
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.2
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 / Base / Controller.php

Controller.php in Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More 2.6.2, at classes/Base/Controller.php

45 lines 751 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Plugin controller.
4 *
5 * @copyright (c) 2021, Code Atlantic LLC.
6 *
7 * @package ContentControl
8 */
9
10 namespace ContentControl\Base;
11
12 defined( 'ABSPATH' ) || exit;
13
14 /**
15 * Localized container class.
16 */
17 abstract class Controller implements \ContentControl\Interfaces\Controller {
18
19 /**
20 * Plugin Container.
21 *
22 * @var \ContentControl\Plugin\Core
23 */
24 public $container;
25
26 /**
27 * Initialize based on dependency injection principles.
28 *
29 * @param \ContentControl\Plugin\Core $container Plugin container.
30 * @return void
31 */
32 public function __construct( $container ) {
33 $this->container = $container;
34 }
35
36 /**
37 * Check if controller is enabled.
38 *
39 * @return bool
40 */
41 public function controller_enabled() {
42 return true;
43 }
44 }
45