PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.6.2
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.6.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 / Admin / ExportDefaults.php

ExportDefaults.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.6.2, at includes/Admin/ExportDefaults.php

28 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace WPDeveloper\BetterDocs\Admin;
3
4
5 // Doc/category-listing primitives (meta_query/tax_query, post__not_in/exclude)
6 // are intrinsic to BetterDocs' KB / category / FAQ filters and intentional.
7 // phpcs:disable WordPress.DB.SlowDBQuery.slow_db_query_meta_key
8 // phpcs:disable WordPress.DB.SlowDBQuery.slow_db_query_meta_query
9 // phpcs:disable WordPress.DB.SlowDBQuery.slow_db_query_tax_query
10 // phpcs:disable WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_exclude
11 // phpcs:disable WordPressVIPMinimum.Performance.WPQueryParams.PostNotIn_post__not_in
12 class ExportDefaults {
13 public static function get_default_args(): array {
14 return [
15 'content' => 'all',
16 'author' => false,
17 'category' => false,
18 'start_date' => false,
19 'end_date' => false,
20 'status' => 'publish',
21 'offset' => 0,
22 'limit' => -1,
23 'meta_query' => [],
24 'query_args' => [],
25 ];
26 }
27 }
28