PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.3.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.3.2
4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 3.4.2 3.5.0 3.5.1 3.5.2 All 199 releases
betterdocs / includes / Editors / BaseEditor.php

BaseEditor.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.3.2, at includes/Editors/BaseEditor.php

36 lines 748 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPDeveloper\BetterDocs\Editors;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly
7 }
8
9 use WPDeveloper\BetterDocs\Utils\Base;
10 use WPDeveloper\BetterDocs\Core\Settings;
11 use WPDeveloper\BetterDocs\Utils\Enqueue;
12
13 abstract class BaseEditor extends Base {
14 protected $is_pro_active = false;
15
16 /**
17 * Settings
18 * @var Settings
19 */
20 protected $settings;
21
22 /**
23 * Settings
24 * @var Enqueue
25 */
26 protected $assets;
27
28 public function __construct( Settings $settings, Enqueue $enqueue ) {
29 $this->settings = $settings;
30 $this->assets = $enqueue;
31 $this->is_pro_active = betterdocs()->is_pro_active();
32 }
33
34 abstract public function init();
35 }
36