wpDiscuz 7 API Documentation

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

wpdiscuz_delete_unattached_files_limit

This filter can be used for changing the number of deleted files.

Changelog

Since 7.1.1 version

Parameters

$limit (type: int) – the number of files that will be deleted each time.

Usage

add_filter("wpdiscuz_delete_unattached_files_limit", function ($limit) {
    return 40;
}, 10);

Was this article helpful to you? Yes No