wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Actions
  5. wpdiscuz_filtering_buttons

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