wpDiscuz 7 API Documentation

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

wpdiscuz_delete_unattached_files

This filter can be used for enabling or disabling the cron job for deleting the unattached files.

Changelog

since 7.3.0 version

Parameters

$enable – if the unattached file should be deleted or not

Usage

add_filter("wpdiscuz_delete_unattached_files", "__return_false");

Was this article helpful to you? Yes 2 No