PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 3.8.1
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v3.8.1
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 3.5.1 All 200 releases
betterdocs / views / admin / docs-ui / classic-partials / categories.php

categories.php in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 3.8.1, at views/admin/docs-ui/classic-partials/categories.php

21 lines 675 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 $current_term = ( isset( $_GET['doc_category'] ) ) ? $_GET['doc_category'] : '';
3
4 $terms_object = [
5 'taxonomy' => 'doc_category',
6 'hide_empty' => false
7 ];
8
9 $terms = get_terms( apply_filters( 'betterdocs_category_terms_object', $terms_object ) );
10 ?>
11 <select
12 id="dashboard-select-doc_category"
13 class="dashboard-search-field dashboard-select-category" name="doc_category">
14 <option value="all"><?php _e( 'All Categories', 'betterdocs' )?></option>
15 <?php
16 foreach ( $terms as $term ) {
17 echo betterdocs()->template_helper->option_kses( $term->slug, $term->name, $current_term );
18 }
19 ?>
20 </select>
21