wpDiscuz 7 API Documentation

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

wpdiscuz_get_comments_cache_fileinfo_filename

This filter can be used for changing the cached file names.

Changelog

Since 7.5.1 version

Parameters

1. “argToIncludeInFilename”- a custom argument that should have an effect on the names of the cached files.
2. $commentsArgs – the comment arguments of the cache file creator function. Using those the function generates the filename.
3. $dirs – the information of the folders for the cached files.

Usage

add_filter('wpdiscuz_get_comments_cache_fileinfo_filename', function($argToIncludeInFilename, $commentsArgs, $dirs){
    $argToIncludeInFilename = ''; // any string/number value
    return $argToIncludeInFilename;
},15,3);

Was this article helpful to you? Yes No