wpDiscuz 7 API Documentation

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

wpdiscuz_content_per_page

This filter can be used for changing the number of items displayed in the tabs of the “My content and settings” window.

Changelog

since 7.0.0 version

Parameters

$perPage (type: int) – the number of the items displayed in the “My content and settings” tabs

Usage

add_filter("wpdiscuz_content_per_page", function ($perPage) {
    return 5;
});

Was this article helpful to you? Yes No