wpDiscuz 7 API Documentation

⌘K
  1. Home
  2. Docs
  3. wpDiscuz 7 API Documentat...
  4. Filters
  5. wpdiscuz_delete_unattached_files

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");