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
Post Type Selectors

wpdiscuz_filtering_buttons

This action can be used to display the filter buttons.

Changelog

since 7.0.0 version

Parameters

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

Usage

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

Was this article helpful to you? Yes No