wpDiscuz 7 API Documentation

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

wpdiscuz_wp_admin_pages

This filter can be used to get the admin pages where the wpDiscuz should be loaded.

Changelog

Since 7.0.0 version

Parameters

$pages (type: array) – the slugs of the WordPress admin pages

Usage

add_filter("wpdiscuz_wp_admin_pages", function ($pages) {
    $pages[] = "profile.php";
    return $pages;
});

Was this article helpful to you? Yes No