# betterdocs/1.7.1/includes/elementor/docs-page.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 1.7.1. 39 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/1.7.1/code/includes/elementor/docs-page.php
- Raw: https://pluginprobe.com/plugins/betterdocs/1.7.1/raw/includes/elementor/docs-page.php
- Modified: 2021-03-04T17:20:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/1.7.1/code/includes/elementor/docs-page.php#L10-L20`.

```php
<?php

namespace ElementorPro\Modules\Woocommerce\Conditions;

use ElementorPro\Modules\ThemeBuilder as ThemeBuilder;

if (!defined('ABSPATH')) {
	exit; // Exit if accessed directly
}

class Docs_Page extends ThemeBuilder\Conditions\Condition_Base
{

	public static function get_type()
	{
		return 'archive';
	}

	public function get_name()
	{
		return 'docs_page';
	}

	public static function get_priority()
	{
		return 40;
	}

	public function get_label()
	{
		return __('Docs Page', 'elementor-pro');
	}

	public function check($args)
	{
		return is_post_type_archive('docs');
	}
}

```
