wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Actions
  5. wpdiscuz_filtering_buttons
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages


This action can be used to display the filter buttons.


since 7.0.0 version


1. $currentUser (type: WP_User object) – the user object that is currently logged in
2. $options (type: WpdiscuzOptions object) – the options of the wpDiscuz plugin


add_action("wpdiscuz_filtering_buttons", function ($currentUser, $options) {
    echo "Custom Button";
}, 10, 2);

Was this article helpful to you? Yes No