wpDiscuz 7 API Documentation

  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentation
  4. Filters
  5. wpdiscuz_dashboard_tools
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

wpdiscuz_dashboard_tools

This hook can be used for adding a new tool in the “Tools” admin page

Changelog

Added in version 7.0.3

Parameters

1. $tools (type: array) – the array of info displayed in the Toll page

Usage

add_filter("wpdiscuz_dashboard_tools", function ($tools) {
    $tools[] = ["selector" => "custom", "file" => "PATH_TO_FILE"];
    return $tools;
}); 

Was this article helpful to you? Yes No