PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.3
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.3
4.9.3 4.9.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 All 201 releases
betterdocs / includes / Editors / Elementor / Conditions / DocsPage.php

DocsPage.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.3, at includes/Editors/Elementor/Conditions/DocsPage.php

33 lines 581 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\Elementor\Conditions;
4
5 if ( ! defined( 'ABSPATH' ) ) {
6 exit; // Exit if accessed directly
7 }
8
9 use ElementorPro\Modules\ThemeBuilder\Conditions\Condition_Base;
10
11 class DocsPage extends Condition_Base {
12
13 public static function get_type() {
14 return 'archive';
15 }
16
17 public function get_name() {
18 return 'docs_page';
19 }
20
21 public static function get_priority() {
22 return 40;
23 }
24
25 public function get_label() {
26 return __( 'Docs Page', 'betterdocs' );
27 }
28
29 public function check( $args ) {
30 return is_post_type_archive( 'docs' );
31 }
32 }
33