| 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 |
|