Knowledge Base documentation & wiki plugin 2.17.0.3 has 20 actions and 55 filters, read directly from its source code on Nov 18, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when Knowledge Base documentation & wiki plugin fires an action
add_action( 'basepress_post_view_counter', function( $post_id, $product_id ) {
// Your code runs here.
}, 10, 2 );
// Change a value Knowledge Base documentation & wiki plugin is about to use
add_filter( 'basepress_entry_page', function( $entry_page ) {
// Change $entry_page here.
return $entry_page;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * This filter allows to modify the entry page ID */ apply_filters( 'basepress_entry_page', $entry_page ); -
/** * This filter allows to change the css file name */ apply_filters( 'basepress_theme_style', 'style.css' ); -
/** * Filter the kb_slug before generating the rewrite rules */ apply_filters( 'basepress_rewrite_rules_kb_slug', $kb_slug, $entry_page ); -
/** * Filter to alter the query pieces for the search query */ apply_filters( 'basepress_search_query_pieces', $pieces, $terms ); -
/** * Filters the list of section IDs that should be used to limit the search to. */ apply_filters( 'basepress_search_tax_terms', $sections_ids, $product ); -
/** * Filter the breadcrumbs items */ apply_filters( 'basepress_breadcrumbs_items', $breadcrumbs_list ); -
/** * This filter can be used to alter the enqueueing of styles */ apply_filters( 'basepress_enqueue_shortcode_style', $enqueue_style ); -
/** * Filter the kb_slug before generating the action link */ apply_filters( 'basepress_kb_slug', $kb_slug, $entry_page ); -
/** * Filter to modify the query for multi sections */ apply_filters( 'basepress_multi_section_query', $args ); -
/** * Filter to modify the template file */ apply_filters( 'basepress_page_template', $template_name, $template ); -
/** * Filters the section permalink before returning it */ apply_filters( 'basepress_post_permalink', $link, $post ); -
/** * Action to do more processing after updating post views meta */ do_action( 'basepress_post_view_counter', $post_id, $product_id ); -
/** * Fires when a new product is added */ do_action( 'basepress_product_added', $product ); -
/** * Filter the product data before sending it. */ apply_filters( 'basepress_product_data_args_edit', $product_data ); -
/** * Fires after the Product order has been updated This filter can be used to do * further processing after products order has been saved */ do_action( 'basepress_product_order_updated', $order ); -
/** * Fires after the product and its metadata have been saved */ do_action( 'basepress_product_updated', $term, $term_image, $sections_style, $term_position ); -
/** * Filters the list of found knowledge bases */ apply_filters( 'basepress_products_terms_args', $terms_args ); -
/** * This action can be used to add fields to the search form */ do_action( 'basepress_search_fields', $product ); -
/** * Filters the redirect url */ apply_filters( 'basepress_search_redirect', $redirect_url ); -
/** * Fires when a new section has been added */ do_action( 'basepress_section_added', $product ); -
/** * Filter the section data before sending it. */ apply_filters( 'basepress_section_data_args_edit', $section_data ); -
/** * This filter can be used to do further processing after section order has * been saved */ do_action( 'basepress_section_order_updated', $order ); -
/** * This is filter allows to change the parents dropdown list on section edit */ apply_filters( 'basepress_section_parent_dropdown', $parents, $section_id ); -
/** * Fires after the Section and its metadata has been saved */ do_action( 'basepress_section_updated', $term, $term_icon, $term_image, $term_position ); -
/** * Filter to modify the list of sections */ apply_filters( 'basepress_section_widget_items', $sections ); -
/** * Filters the section permalink before returning it */ apply_filters( 'basepress_sections_permalink', $termlink, $term ); -
/** * Filters the list of found knowledge bases */ apply_filters( 'basepress_sections_terms_args', $terms_args ); -
/** * Action to add extra features settings fileds */ do_action( 'basepress_settings_fields' ); -
/** * Action to add extra settings sections */ do_action( 'basepress_settings_sections' ); -
/** * Action filter to modify the query for a single section */ do_action( 'basepress_single_section_query', $query ); -
/** * Action filter to modify the query for a tag */ do_action( 'basepress_tag_query', $query ); -
/** * Fires before querying the database to get all posts that need to be reset */ apply_filters( 'basepress_views_reset', $query ); -
/** * Filter the number of posts for the current query */ apply_filters( 'get_section_post_count_args', $post_count, $section ); -
apply_filters( 'basepress_modern_theme_header_title', 'Knowledge Base' ); -
apply_filters( 'basepress_legacy_icons', false ); -
apply_filters( 'basepress_sections_content', $sections_content, $bpkb_knowledge_base ); -
apply_filters( 'basepress_search_min_char_length', $minimum_char_length ); -
apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance ); -
apply_filters( 'basepress_article_toc_position', $toc_position ); -
apply_filters( 'basepress_show_taxonomy_screen', false ); -
apply_filters( 'basepress_uncategorized_section', 'uncategorized' ); -
apply_filters( 'basepress_search_snippet', $snippet, $search_post ); -
apply_filters( 'basepress_smart_search_snippet_length', 200 ); -
apply_filters( 'basepress_snippet_word_boundary', '\\b' ); -
do_action( 'base_fs_loaded' ); -
do_action( 'basepress_after_edit_product_fields' ); -
do_action( 'basepress_after_edit_section_fields' ); -
do_action( 'basepress_after_new_product_fields' ); -
do_action( 'basepress_after_new_section_fields' ); -
do_action( 'basepress_after_settings_validate', $input ); -
do_action( 'basepress_breadcrumbs_output', $breadcrumbs_list, $separator ); -
apply_filters( 'basepress_canonical_redirect', true, $request ); -
apply_filters( 'basepress_force_script_loading', false ); -
apply_filters( 'basepress_icons_manager_regex', "/\.([\w-]+):before\s*{\s*content:.*?\s*}/" ); -
apply_filters( 'basepress_kb_wizard_excluded_screens', array( 'admin_page_basepress_wizard', 'basepress_page_basepress_manual' ) ); -
do_action( 'basepress_made_search', $product, $terms ); -
apply_filters( 'basepress_posts_order', array( 'orderby' => $orderby, 'order' => '' ) ); -
apply_filters( 'basepress_products_widget_terms_args', $terms_args ); -
apply_filters( 'basepress_remove_missing_template_notice', false ); -
apply_filters( 'basepress_rewrite_rules', $new_rules, array( 'entry_page' => $options['entry_page'], 'kb_slug' => $kb_slug, 'uncategorized_slug' => $uncategorized_slug, 'product_slug' => $product_slug, 'search_base' => $search_base, 'page_base' => $page_base, 'comments_pagination_base' => $comments_pagination_base, ) ); -
apply_filters( 'basepress_save_settings', $attr_options ); -
apply_filters( 'basepress_search_force_strip_shortcodes', false ); -
apply_filters( 'basepress_search_snippet_length', 300 ); -
apply_filters( 'basepress_search_strip_shortcodes', true ); -
apply_filters( 'basepress_search_word_boundary', $word_boundary ); -
apply_filters( 'basepress_section_widget_terms_args', $terms_args ); -
apply_filters( 'basepress_settings_entry_page_save', $new_entry_page ); -
apply_filters( 'basepress_skip_auto_shortcode', false ); -
apply_filters( 'bp_search_description', esc_html( $bpkb_knowledge_base->description ) ); -
apply_filters( 'bp_unique_themes', array() );
Generated from Knowledge Base documentation & wiki plugin's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: