wpDiscuz 7 API Documentation

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

wpdiscuz_gravatars_cache_limit

This filter can be used to manage the count of avatars that should be cached each time.

Changelog

Since 47.0.0 version

Parameters

$limit (type: int) – the limit of the cached avatars

Usage

add_filter("wpdiscuz_gravatars_cache_limit", function ($limit) {
    return 15;
});

Was this article helpful to you? Yes No